Reading Manual Pages with man
Time for a much-needed mental break: The man
command is easy to use. Most people use only the topic argument, like this: man gcc
. However, two other commands work closely with man
that are very useful: whatis
and apropos
.
The whatis
command returns a one-line description of another command, which is the same text you get at the top of that command’s man page. For example:
matthew@seymour:~$ whatis lsls (1) - list directory contents
The output explains what ls
does but also provides the man page section number for the command so you can query it further.
The apropos
command takes a search string as its parameter and returns all man pages that match the search. For example, apropos ...
Get Ubuntu Unleashed 2015 Edition: Covering 14.10 and 15.04, Tenth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.