Can I view a specific chapter in a manual?
I tried man socket(2)
in WSL Ubuntu 16.04 (Xenial).
This is after I got a recommendation to see chapter 2 in a man of the socket
utility.
Can I view a specific chapter in a manual?
I tried man socket(2)
in WSL Ubuntu 16.04 (Xenial).
This is after I got a recommendation to see chapter 2 in a man of the socket
utility.
You can use man <section_number> <package_name>
, i.e. man 2 socket
Or man <package_name>.<section_number>
, i.e. man socket.2
.
From man man
:
man man.7
Display the manual page for macro package man from section 7.
And also from man man
:
man [[section] page[.section] ...]
Section 2 is the section that deals with system calls. To read a man page in that section you append a .2 to the system call. So the socket(2) manual is found by entering:
man socket.2
See also:
$ man man
See the socket(2) manual
. – Feb 13 '19 at 19:09man socket(2)
notman socket 2
as seen fromhistory
. Edited and sorry ! – Feb 13 '19 at 19:38