25

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?

Abdullah Jibaly
  • 53,220
  • 42
  • 124
  • 197

2 Answers2

40

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.

Dana
  • 32,083
  • 17
  • 62
  • 73
Paul Tomblin
  • 179,021
  • 58
  • 319
  • 408
  • 2
    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 Feb 25 '09 at 21:58
  • 2
    @Craig - also useful for disambiguating, as shown in eduffy's answer. – Paul Tomblin Feb 25 '09 at 22:06
24

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.

Bryan Oakley
  • 370,779
  • 53
  • 539
  • 685
eduffy
  • 39,140
  • 13
  • 95
  • 92