Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

man sections [closed]

Tags:

manpage

How do I access specific sections of man pages?

like image 275
kajaco Avatar asked Nov 06 '08 22:11

kajaco


2 Answers

Put the section number in front of the item you want to reference. For example, to access the sysctl function from the library section, you can write:

man 3 sysctl

and to access the sysctl tool from the system administrator's section, you would write:

man 8 sysctl
like image 147
Jason Coco Avatar answered Oct 07 '22 10:10

Jason Coco


To add to what Jason said: if you're not sure what section something is in, you can also see all of the man pages for a given topic by typing

man -a topic

This is useful for topics such as printf, for which there is both a command and a C function that do similar things.

like image 29
Adam Rosenfield Avatar answered Oct 07 '22 09:10

Adam Rosenfield