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)

Bash shell keyboard shortcuts


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.

Link

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

Syndicate content