linux
Mac tips for Unix users
I just got used to using Ubuntu Linux over the past couple years and now we use Macs at work. The trouble is that the Mac flavor of UNIX is quite a bit different from the way Ubuntu works. I found this to be a helpful introduction to understanding the similarities and differences between Mac OS X and Ubuntu Linux.
Top Ten Mac OS X Tips for Unix Geeks
Moving your cursor in a terminal with bash shell (Mac OS X, and Ubuntu Linux compatible)
Tired of pressing delete 1,000 times to move around in your terminal window? Use these handy shortcuts and spare yourself the repetitve stress inducing, carpal-tunnel-flaring effects of using the command line in Macs and Linux.
My current favorites:
- ctrl-a: move to front of line
- ctrl-e: move to end of line
- ctrl-w: delete word before cursor
- ctrl-r: search past command history
- up/down arrow: page through previous commands
- alt-b / alt-f: move backward/forward one word (without deleting)
linux user management commands
I couldn't figure out how to do view or change groups in Linux for a while. This page tells me most of the user management commands.
Hosts file location for Mac OS X, Ubuntu Linux, and Windows XP
The "hosts" file is useful when you need to use ssh tunnels and stuff to mimic like the other server is publicly accessible.
The Mac OS X hosts file for your internet stuff is at
/private/etc/hosts
The Ubuntu Linux hosts file is usually at
/etc/hosts
The Windows XP hosts file is usually at
C:\WINDOWS\system32\drivers\etc\hosts
Use df on command-line to check remaining disk space in *NIX and Mac OS X
To know how much remaining hard disk space you have on your various partitions from the command line.
df -h (human readable)
It has always irked me that "ls" does not show space remaining the way "dir" does in DOS/Windows
Nuts!
My ISP crashed and consequently went out of business. I have moved my blog. For new articles visit blog.infoentropy.com
tags in Articles
User login
Other blogs
Recent blog posts
- Step-by-step to build a facebook app with CakePHP
- Enabling CakePHP 1.1 on Lighttpd 1.5
- Install and configure PHP5 and lighttpd on mac os x 10.4
- lighttpd as a startup item on os x
- Mac tips for Unix users
- Moving your cursor in a terminal with bash shell (Mac OS X, and Ubuntu Linux compatible)
- linux user management commands
- Setup LigHTTPD virtual hosting by hand
- Reload your hosts file in Mac
- Using MochiKit doXHR
