So you've written a UNIX utility, library, or driver—or have started writing one—and you want to
document your work in a manual. What happens next?
.Pp
Practical UNIX Manuals: mdoc is a guide for writing portable and maintainable UNIX manuals
(manpages) in the mdoc language.
.Pp
Why mdoc?
Formatters for the language are available by default on all modern UNIX installations and may be downloaded for
non-UNIX systems.
Furthermore, mdoc annotates content semantically, not presentationally, producing consistent manpages
across systems.
For an analysis of mdoc and competing formats, refer to
Fixing on a
Standard Language for UNIX Manuals, published in the USENIX magazine.
.Pp
This book is structured first as a series of tutorials, then a guide to best practises: it is
not a reference! For that, refer to your local mdoc manual.
.Pp
I also feature the History of UNIX Manpages, which chronicles the development of manpages from the 1960s
to the present day.
.
All content licensed under Creative Commons' Attribution Share-Alike: deriving works must
attribute the author, Kristaps Dzonsons, and use a similar license.
Citations should include the current version, 0.2.0, and date, 2 April 2026.