1

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.

Prvt_Yadav
  • 5,882

2 Answers2

2

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] ...]

Prvt_Yadav
  • 5,882
1

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
Arjen
  • 188