ARCHIVED: In Unix, what do the sections of manual pages refer to?

This content has been archived, and is no longer maintained by Indiana University. Information here may no longer be accurate, and links may no longer be available or reliable.

The Unix manual pages are divided into several sections to speed searches for more experienced users, and to differentiate certain types of information. The usual man page sections are:

  1) User Commands
  2) System Calls
  3) Subroutines
  4) Devices
  5) File Formats
  6) Games
  7) Miscellaneous
  8) Sys. Administration
  l) Local
  n) New
  o) Old

Usually you don't need to worry about which section a manual page will be in. However, sometimes there are manual pages by the same name in different sections, referring to different things (e.g., the manual page on how to use the "hostname" command may be found in section 1 "[User Commands]", while the man page that describes the process of hostname resolution is found in section 5 "[File Formats]"). So, if you want to know how hostnames are resolved, you must type:

  man 5 hostname

Otherwise, you'll get the default page in section 1.

This is document abzo in the Knowledge Base.
Last modified on 2018-01-18 09:02:14.