What does the index mean e.g. pkg-info(1)?

5

1

Many man pages include an index e.g. pkg-info (1) and sometimes the same man page references the same base but with different indices e.g. pkg-info (4).

What does the index stand for?

jldupont

Posted 2009-09-28T13:02:20.833

Reputation: 5 524

Answers

7

The index indicates the section the information falls under

  1. General Commands
  2. System Calls
  3. Subroutines
  4. Special Files
  5. File Formats
  6. Games
  7. Macros and Conventions
  8. Maintenence Commands

For eaxample

man 1 pkg-info

will give the man page related to the command and

man 4 pkg-info

will give info related to special files for pkg-info

Example

pkginfo(1) -- display software package and/or set information

pkginfo(4) -- package characteristics file pkginfo is an ASCII file that describes the characteristics of the package along with information that helps control the flow of installation.

monkey_p

Posted 2009-09-28T13:02:20.833

Reputation: 441

2Use man -a pkginfo to view all sections (one after another). – Cristian Ciupitu – 2009-09-28T14:06:17.063