Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

*nix commands (and functions?) have a number with them, like fsck(8), killall(1), etc.

What does the number mean?

share|improve this question
    
Related: fsck(8) is pronounced suck it. –  Jerry Dec 25 '11 at 3:07
    
possible duplicate of What do the numbers in a man page mean? –  Gilles Dec 26 '11 at 23:35
add comment

3 Answers

up vote 6 down vote accepted

The character explicitly specifies the section that the manual page is part of. On most Unices, the section definitions are as follows:

  1. General/user commands
  2. System calls
  3. Library functions
  4. Special files and drivers
  5. File formats
  6. Games and screensavers
  7. Miscellanea and conventions
  8. System administration commands, priveleged commands, and daemons
  9. Kernel routines

SysV has a similar, but not identical structure:

  1. General commands

    (M) System administration commands and daemons

  2. System calls
  3. C library functions
  4. File formats and conventions
  5. Miscellanea
  6. Games and screensavers
  7. Special files and drivers

On some systems, the following sections also exist:

  • 0 - C library headers
  • L - Math library functions
  • N - TCL functions/keywords
  • X - X-Windows documentation
  • P - POSIX specifications
share|improve this answer
1  
It's most important when something is found in many places, like open() which can be in the C or perl man pages. man -f will show you all of them, e.g. man -f open –  Aaron D. Marasco Dec 25 '11 at 2:18
add comment

The number is the manpage it refers to. Each manpage has its own purpose, like beeing the manpage for the POSIX definition or specific linux definition (for programmers) or the manpage for the tools usage itself, if you can invoke it from the commandline.

the purpose of the specific manpage is covered in the first section

man 8 fsck

will show you the specific page

man -a fsck

will show you page after page after you quit with q

share|improve this answer
    
I prefer man -f to show where it could be, then just display the one I want. –  Aaron D. Marasco Dec 25 '11 at 2:17
add comment

In addition to the answers already provided. Keep in mind that some Unix don't have the 8 number in their man's categories, but have the 1M instead.

Unix System V uses a similar numbering scheme, except in a different order:
Section     Description
1   General commands
1M  System administration commands and daemons
2   System calls
3   C library functions
4   File formats and conventions
5   Miscellanea
6   Games and screensavers
7   Special files (usually devices, those found in /dev) and drivers

from Wikipedia.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.