Finding Commands on GNU/Linux and Mac OS X
The situation on GNU/Linux and Mac OS X is considerably simpler. For both systems, a path like the following suffices:
PATH=/bin:/usr/bin:/usr/X11R6/bin
On Mac OS X the default path is /bin:/sbin:/usr/bin:/usr/sbin. You may
wish to add the X11 directory to it:
PATH=$PATH:/usr/X11R6/bin
Tip
Essentially every GNU/Linux program accepts long options
(such as --fire-phasers) besides the traditional
short ones (-F). In addition, just about every
GNU/Linux program accepts the options --help and
--version, to print a command-line summary and
version information respectively. In the interests of brevity, the
individual command descriptions omit the --help
and --version options, and they omit the
statement that long options apply only to GNU/Linux
programs.
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