- Manual page (Unix)
Almost all substantial UNIX and
Unix-like operating system s have extensive documentation known as man pages (short for "manual pages"). The Unix command used to display them isman
. Each page is a self-contained document. Theman
command is analogous to thehelp
command in the command shells ofDOS ,OS/2 andMicrosoft Windows .Usage
To read a manual page for a Unix command, one can use
man
at a shell prompt; for example, "man ftp". In order to simplify paging through the output man generally uses the less file viewer.
Pages are traditionally referred to using the notation "name(section)"; for example, , or is
man 3 printf
History
The "UNIX Programmer's Manual" was first published on
November 3 ,1971 . The first actual man pages were written byDennis Ritchie andKen Thompson at the insistence ofDoug McIlroy in 1971. Thetroff macros used for man pages (-mm) were the general-purpose ones written by Ted Dolotta (later to be the first manager of USG and the principal author of the System III manual), with additions for the manuals. At the time, the availability of online documentation through the manual page system was regarded as a great advance. To this day, virtually every Unix command line application comes with its man page, and many Unix users perceive a lack of man pages as a sign of low quality; indeed, some projects, such asDebian , go out of their way to write man pages for programs lacking one. Few alternatives toman
have enjoyed much popularity, with the possible exception of theGNU project's "info
" system, an early and simplehypertext system.However, the format of a single page for each application, the lack of classification within the sections and the relatively unsophisticated formatting facilities have motivated the development of alternative documentation systems, such as the previously mentioned
info
system.Most Unix GUI applications (particularly those built using the
GNOME andKDE development environments) now provide end-user documentation inHTML and include embedded HTML viewers such asyelp
for reading the help within the application.Usually the man pages are written in English. Translations into other languages can be also available on the system.
The default format of the man pages is
troff , with either the macro package man (appearance oriented) or on some systemsmdoc (semantic oriented). This makes it possible to typeset a man page toPostScript , PDF and various other formats for viewing or printing.Manual sections
The manual is generally split into eight numbered sections, organized as follows (on
BSD Unix andLinux ):Some versions of man cache the formatted versions of the last several pages viewed.
To see options you can use with command man, enter the command man man.
Layout
All man pages follow a common layout that is optimized for presentation on a simple
ASCII text display, possibly without any form of highlighting or font control. Sections present may include:* NAME — The name of the command or function, followed by a one-line description of what it does.
* SYNOPSIS — In the case of a command, you get a formal description of how to run it and what command line options it takes. For program functions, a list of the parameters the function takes and which header file contains its definition. For experienced users, this may be all the documentation they need.
* DESCRIPTION — A textual description of the functioning of the command or function.
* EXAMPLES — Some examples of common usage.
* SEE ALSO — A list of related commands or functions.Other sections may be present, but these are not well standardized across man pages. Common examples include: OPTIONS, EXIT STATUS, ENVIRONMENT, KNOWN BUGS, FILES, AUTHOR, REPORTING BUGS, HISTORY and COPYRIGHT.See also
*
List of Unix utilities
*List of Plan 9 applications
*Info (Unix)
*RTFM External links
* [http://cm.bell-labs.com/cm/cs/who/dmr/1stEdman.html "Unix Programmer's Manual" of November 3, 1971]
*Repositories of manual pages
* [http://manpages.debian.net/ "Debian GNU/Linux man pages"]
* [http://leaf.dragonflybsd.org/cgi/web-man "DragonFlyBSD manual pages"]
* [http://www.freebsd.org/cgi/man.cgi "FreeBSD Hypertext Man Pages"] including man pages for other Unix operating systems, current and historical.
* [http://en.linuxpages.info/index.php?title=Main_Page "Gobuntu Manual Pages"]
* [http://manpagehelp.net "Linux/FreeBSD Man Pages"] with user comments
* [http://linux.die.net/man/ "Linux man pages at die.net"]
* [http://developer.apple.com/documentation/Darwin/Reference/ManPages/index.html "Mac OS X Manual Pages"]
* [http://man-wiki.net/index.php/Main_Page Man-Wiki: "Linux / Solaris / UNIX / BSD"] inMediaWiki format
* [http://netbsd.gw.com/cgi-bin/man-cgi "NetBSD manual pages"]
* [http://unixhelp.ed.ac.uk/alphabetical/index.html "On-line UNIX manual pages"]
* [http://www.openbsd.org/cgi-bin/man.cgi "OpenBSD manual pages"]
* [http://plan9.bell-labs.com/sys/man/ "Plan 9 Manual — Volume 1"]
* [http://manpages.ubuntu.com/ "Ubuntu Manpage Repository"]
* [http://manpages.develpub.com/ "Unix / Linux Man Pages OnLine"]
* [http://www.istild.com/man-pages/ "Unix / Linux online man pages"]
* [http://man.freetechsecrets.com/ "Unix / Linux / FreeBSD online man pages repository"] with full text search.
* [http://manpages.unixforum.co.uk/ "Unix Man Pages / Linux Man Pages"] has man pages from many distributions of Unix and Linux (currently four distributions in the database)
Wikimedia Foundation. 2010.