Manual: Difference between revisions

From Hackepedia
Jump to navigationJump to search
No edit summary
m Formatting changes, slight text edits
Line 2: Line 2:




section 1
;Section 1 : General commands (tools and utilities)
; Section 2 : System calls and error numbers
; Section 3 : Library functions, especially for C and Tk
; Section 4  : Special files and hardware support
; Section 5 : File formats, especially configuration files
; Section 6 : Games
; Section 7 : Miscellaneous information pages
; Section 8 : System maintenance and operation commands
; Section 9 : Kernel internals


general commands (tools and utilities)


section 2
When someone tells you to run "man 6 tetris", that means that you should read the tetris manpage found in section 6 of the manpages.  Sometimes the same manpage name exists, but in different sections. One example is the fstat manpage it exists in sections 1 and 2.  The lower number sections take precedence over higher numbered sections.  Thus, to see the manpage for fstat in section 2 you would type:
 
system calls and error numbers
 
section 3
 
the C libraries
 
section 4
 
special files and hardware support
 
section 5
 
file formats
 
section 6
 
the games
 
section 7
 
miscellaneous information pages
 
section 8
 
system maintenance and operation commands
 
section 9
 
kernel internals
 
 
When someone says to you "man 6 tetris" he means that you should read the tetris manpage in section 6 of the manpages.  Sometimes the same manpage name exists, but in different sections. One example is the fstat manpage it exists in sections 1 and 2.  To see the manpage for fstat in section 2 you would type  
  $ man 2 fstat
  $ man 2 fstat

Revision as of 16:07, 9 October 2005

Most UNIX systems have online manual pages. The types of manpages have sections which they are grouped in. Here is the layout of BSD:


Section 1
General commands (tools and utilities)
Section 2
System calls and error numbers
Section 3
Library functions, especially for C and Tk
Section 4
Special files and hardware support
Section 5
File formats, especially configuration files
Section 6
Games
Section 7
Miscellaneous information pages
Section 8
System maintenance and operation commands
Section 9
Kernel internals


When someone tells you to run "man 6 tetris", that means that you should read the tetris manpage found in section 6 of the manpages. Sometimes the same manpage name exists, but in different sections. One example is the fstat manpage it exists in sections 1 and 2. The lower number sections take precedence over higher numbered sections. Thus, to see the manpage for fstat in section 2 you would type:

$ man 2 fstat