Introduction
The pages of the Unix manual are written as text for the roff typesetting system,
with one of two macro languages. The older man macros describe appearance;
the newer mdoc macros describe meaning and are recommended for new pages.
Source files are usually named after their manual section, such as
ls.1, and are sometimes given the extension .man.
Structure
A line that begins with a dot is a macro line: the first word names the macro and the
rest are its arguments. Other lines are text. In the man language a page starts with
.TH, which gives the name, section and date, and is divided with
.SH sections and .SS subsections.
.TH PROGNAME 1 1979-01-10
.SH NAME
progname \- does one thing
Not described
This page is a first outline. The macros are not yet described here.
Known, not yet covered
- Reference: the man and mdoc macro sets and the underlying roff requests and escapes, which the mandoc manuals document.
- Viewer: the site has no viewer for this format.