|
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
[edit] UsageTo read a manual page for a Unix command, one can use man <command_name> 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, . The same page name may appear in more than one section of the manual, this can occur when the names of system calls, user commands, or macro packages conflict. Two examples are and , or and . The syntax for accessing the non-default manual section varies between different man implementations. On Linux and *BSD, for example, the syntax for reading is man 3 printf [edit] HistoryThe 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 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 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 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. [edit] Manual sectionsThe manual is generally split into eight numbered sections, organized as follows (on BSD Unix and Linux):
Unix System V uses a similar numbering scheme, except section 4 is file formats, section 5 is miscellany and section 7 is special files. On some systems some of the following sections are available:
The sections are further subdivided by means of a suffix letter, such that section 3C is for C library calls, 3M is for the math library, and so on. A consequence of this is that section 8 (system administration commands) is sometimes relegated to the 1M subsection of the main commands section. Some subsection suffixes have a general meaning across sections:
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. [edit] LayoutAll 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:
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. [edit] See also[edit] External links
[edit] Repositories of manual pages
This article was originally based on material from the Free On-line Dictionary of Computing, which is licensed under the GFDL. Página espejo de la WikipediaDirectorio de Enlaces Directorio dmoz Directorio espejo dmoz Pedro Bernardo | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||