Getting Help
If you need more information than this book provides, there are several things you can do.
- Run the
mancommand The
mancommand displays an online manual page, or manpage, for a given program. For example, to learn about listing files withls, run:➜
man lsTo search for manpages by keyword for a particular topic, use the
-koption followed by the keyword:➜
man -k database- Run the
infocommand The
infocommand is a text-based, menu-driven help system covering some important Terminal commands and applications:➜
info lsWhile
infois running, some useful keystrokes are:To get help, type
hTo quit, type
qTo page forward and backward, use the space bar and Backspace keys
To jump between hyperlinks, press Tab
To follow a hyperlink, press Enter
If
infohas no documentation on a given program, it displays the program’s manpage. For a listing of available documentation, typeinfoby itself. To learn how to navigate the info system, typeinfo info.- Use the
--helpoption (if any) Some commands respond to the option
--helpby printing a short help message. Try:➜
diff --helpIf the output is longer than the screen, pipe it into the
lessprogram to display it in pages (pressqto quit):➜
diff --help | less- Examine the directory /usr/share/doc
This directory contains supporting documents for several programs. For example, files for the bash shell are found in /usr/share/doc/bash.
- Mac-specific websites
Some great sites for asking OS X questions are Mac OS X Hints (http://hintsforums.macworld.com/) and ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access