tags:

views:

352

answers:

3

For example, when I run man ioctl the page says IOCTL(2) at the top. What does that mean? Is there an IOCTL(1)? And how does one navigate between these?

+32  A: 

It's the man page section. From memory, section 1 is user programs, 2 is system calls, and 3 is standard C library calls, and 5 is file formats.

Wikipedia has the full explanation here.

Paul Tomblin
+1. This puzzled me for years. ... ( ere long WikiPedia existed of course )
OscarRyz
The man page section was very useful in days of printed manuals. I still have the 4.1 BSD printed manuals in my office. (The section number also helps you know when you're calling into the kernel, versus making a library call.)
Craig S
@Craig - also useful for disambiguating, as shown in eduffy's answer.
Paul Tomblin
+20  A: 

That's the man page section number. For example

 man printf

(should) Give you section 1, printf the bash command, while

 man 3 printf

gives you the C function printf.

eduffy
+1  A: 

Here's a list of what the man page sections refer to.

http://www.december.com/unix/ref/mansec.html

SumoRunner