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 mixer returns this list:
alsamixer ...
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