Man Page - Writing Man Pages

Writing Man Pages

On 4.4BSD and its descendants, including FreeBSD, NetBSD, OpenBSD, DragonFly BSD, and OS X, and in GNU/Linux systems, two groff macro packages are available for use in writing manual pages, man and mdoc. The man macro package is older and is the traditional macro package used to write manual pages on UNIX systems, whereas the mdoc package is newer and offers more support for semantic structuring of documents. The commands man groff_man and man groff_mdoc may be used in 4.4BSD-descended systems, and in GNU/Linux, to bring up the online documentation (man pages) for using the man and mdoc macro packages, respectively.

In addition, one can simply inspect the source code for man pages installed on the system to see how they are written, typically found in /usr/share/man and other directories on 4.4BSD-descended systems and GNU/Linux systems. (To find the location of the manual page source file for command command, type man -w command.)

Man pages can also be written in DocBook or LinuxDoc format, then converted to groff.

Read more about this topic:  Man Page

Famous quotes containing the words writing, man and/or pages:

    It wasn’t by accident that the Gettysburg address was so short. The laws of prose writing are as immutable as those of flight, of mathematics, of physics.
    Ernest Hemingway (1899–1961)

    When a man gets up to speak, people listen, then look. When a woman gets up, people look; then, if they like what they see, they listen.
    Pauline Frederick (1883–1938)

    There is a difference between a book of two hundred pages from the very beginning, and a book of two hundred pages which is the result of an original eight hundred pages. The six hundred are there. Only you don’t see them.
    Elie Wiesel (b. 1928)