Overview#
Section |
Description |
---|---|
1 |
General commands |
2 |
System calls |
3 |
Library functions, covering in particular the C standard library |
4 |
Special files (usually devices, those found in /dev) and drivers |
5 |
File formats and conventions |
6 |
Games and screensavers |
7 |
Miscellanea |
8 |
System administration commands and daemons |
Source: Man Page
Viewing Man Page#
$ man [section] <page>
Styling#
From man-pages(7):
`` Formatting conventions for manual pages describing commands``
`` For manual pages that describe a command (typically in Sections 1 and``
`` 8), the arguments are always specified using italics, even in the``
`` SYNOPSIS section.``
`` The name of the command, and its options, should always be formatted``
`` in bold.``
Converting Markdown to Roff Man Page#
$ go-md2man -in <markdown file> -out <roff file>
Previewing Roff Man Page#
$ man <roff file>
Clearing Man Page Cache#
$ mandb