Five ways to get help in the Mac OS X Command Line
February 24th, 2007 - Command Line, How to, Mac OS X
Whether you’re a unix novice or veteran, if you’re using the command line you’ll often find yourself looking up exactly how to use a specific command for either its full functionality or proper syntax. Many of us will just google a command if we can’t seem to get things to work properly, but before you go that route you should try the available resources that are built right in. There’s no shame in needing assistance, so here are five ways to get help in the command line:
| Command | Action / Results |
man (command) |
Display the manual page for (command). eg: man lsof |
whatis (command) |
Display a one line brief summary of specified command. eg: whatis lsof | (command) --help |
Display command usage information including available flags and proper syntax. eg: lsof –help | apropos (string) |
Searches the whatis database for (string), helpful in finding commands. eg: apropos ssh | (command)+tab key |
Begin typing a command, and hit the tab key to autocomplete, or to list available commands that start with the typed prefix. |
Note: be sure to remove the parenthesis () to get each command to work properly.
Posted by: Editor

Order Mac OS X 10.6 Snow Leopard today from Amazon.com - $25!

Write a comment