I want to view the read
page of the Linux Programmer's Manual
. When I type man read
I get the read
page of the General Commands Manual
.
Looking at the man --help
I realized I could view all man
pages for a query but that entails viewing them all one by one until I hit the one I'm looking for. Not really efficient.
How can I specify which manual I want to query?
Best Answer
If you already know the section of the manual page you want to view, you can pass that as a parameter to
man
. For example, to view the manual page forread
in section 2:The sections are as follows (this list taken from the manual page for
man
itself):