Manual page (Unix)

Manual page (Unix)

Almost all substantial UNIX and Unix-like operating systems have extensive documentation known as man pages (short for "manual pages"). The Unix command used to display them is man. Each page is a self-contained document. The man command is analogous to the help command in the command shells of DOS, OS/2 and Microsoft 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 by Dennis Ritchie and Ken Thompson at the insistence of Doug McIlroy in 1971. The troff 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 as Debian, go out of their way to write man pages for programs lacking one. Few alternatives to man have enjoyed much popularity, with the possible exception of the GNU project's "info" system, an early and simple hypertext 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 and KDE development environments) now provide end-user documentation in HTML and include embedded HTML viewers such as yelp 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 systems mdoc (semantic oriented). This makes it possible to typeset a man page to PostScript, 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 and Linux):

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"] in MediaWiki 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.

Игры ⚽ Поможем написать курсовую

Look at other dictionaries:

  • UNIX-Kommandos — Unix Systeme zeichnen sich durch eine Vielzahl von Kommandos aus, mit denen sich über eine Shell das Betriebssystem bedienen lässt. Die Syntax dieser Kommandos weicht unter den verschiedenen Systemen voneinander ab. Es existieren die beiden… …   Deutsch Wikipedia

  • Unix-Befehle — Unix Systeme zeichnen sich durch eine Vielzahl von Kommandos aus, mit denen sich über eine Shell das Betriebssystem bedienen lässt. Die Syntax dieser Kommandos weicht unter den verschiedenen Systemen voneinander ab. Es existieren die beiden… …   Deutsch Wikipedia

  • Unix-Kommando — Unix Systeme zeichnen sich durch eine Vielzahl von Kommandos aus, mit denen sich über eine Shell das Betriebssystem bedienen lässt. Die Syntax dieser Kommandos weicht unter den verschiedenen Systemen voneinander ab. Es existieren die beiden… …   Deutsch Wikipedia

  • Unix Kommandos — Unix Systeme zeichnen sich durch eine Vielzahl von Kommandos aus, mit denen sich über eine Shell das Betriebssystem bedienen lässt. Die Syntax dieser Kommandos weicht unter den verschiedenen Systemen voneinander ab. Es existieren die beiden… …   Deutsch Wikipedia

  • Unix-Kommandos — Unix Systeme zeichnen sich durch eine Vielzahl von Kommandos aus, mit denen sich über eine Shell das Betriebssystem bedienen lässt. Die Syntax dieser Kommandos weicht unter den verschiedenen Systemen voneinander ab. Es existieren die beiden… …   Deutsch Wikipedia

  • Unix time — Unix time, or POSIX time, is a system for describing points in time, defined as the number of seconds elapsed since midnight Coordinated Universal Time (UTC) of January 1 1970, not counting leap seconds. It is widely used not only on Unix like… …   Wikipedia

  • Unix — (officially trademarked as UNIX, sometimes also written as Unix with small caps) is a computer operating system originally developed in 1969 by a group of AT T employees at Bell Labs, including Ken Thompson, Dennis Ritchie, Douglas McIlroy, and… …   Wikipedia

  • Page (computer memory) — Page size redirects to this article. For information on paper see Paper size A page, memory page, or virtual page is a fixed length contiguous block of virtual memory that is the smallest unit of data for the following: memory allocation… …   Wikipedia

  • Page fault — In computer storage technology, a page is a fixed length block of memory that is used as a unit of transfer between physical memory and external storage like a disk, and a page fault is an interrupt (or exception) to the software raised by the… …   Wikipedia

  • Unix-Shell — Die Unix Shell oder kurz Shell (en. Hülle, Schale) bezeichnet die traditionelle Benutzerschnittstelle unter Unix oder unixoiden Computer Betriebssystemen. Der Benutzer kann in einer Eingabezeile Kommandos eintippen, die der Computer dann sogleich …   Deutsch Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”