How do I access specific sections of man pages?
+11
A:
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
Jason Coco
2008-11-06 23:01:53
+3
A:
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.
Adam Rosenfield
2008-11-06 23:10:06
the apropos flga will only work on systems after catman has been run
Rob Wells
2008-11-06 23:14:26
oops. s/flag/flga/
Rob Wells
2008-11-06 23:14:59
I think the -a flag just lists entries for a specific item in all the sections... to emulate apropos I think you use the -k flag...
Jason Coco
2008-11-06 23:32:36
A:
use the -s flag, for example:
man -s 2 read
you might like to look at
man intro
to get an idea of what's where.
HTH.
cheers,
Rob
Rob Wells
2008-11-06 23:13:37
'man -s N' is Unix Sys V (if not SVR4) style - and supported by POSIX, but not supported by Linux (nor, I think, MacOS X).
Jonathan Leffler
2008-11-07 06:22:07