man のトピック名が複数のセクションで重複してて、どれが何だったか思い出せないことがある。ウェブで探すのはちょっと手間だし、外につながってないこともある。
Linux
Ubuntu 12.04 LTS
man man か man man-pages で確認できる。ちなみに man(1) および man-pages(7)。
CentOS 6.5
man man で確認できる。
(他ディストロも確認したら追記します)
BSD系
Mac OS X 10.9.2
man manpages で確認できる。ちなみに manpages(5)。
Linux の気分で探すと出てこないのがプチ罠。man man には書いてなくて man man-pages は存在しない(そもそもこれをメモしたくて記事を書いた)。
OpenBSD 5.3
man man で確認できる。ただしだいぶ下のほう(75%くらいの位置)。
汎用
man 5 intro などとすればセクションのイントロダクションを読める。セクション番号を確認したいものに変えれば1つずつ確認できる。1つだけわかればよい、詳しく知りたい、という場合に。
リスト引用
空行を省略したものがある。
Linux
Ubuntu 12.04 LTS
man man より。
1 実行プログラムまたはシェルコマンド
2 システムコール (カーネルが提供する関数)
3 ライブラリー呼び出し (プログラムライブラリーに含まれる関数)
4 特殊ファイル (通常 /dev 配下に存在するファイル)
5 ファイルの書式と慣習 (例: /etc/passwd)
6 ゲーム
7 その他いろいろなもの (マクロパッケージや慣習などを含む)。 例えば man(7) や groff(7)。
8 システム管理コマンド (通常は root 用)
9 カーネルルーチン [非標準]
CentOS 6.5
man man より。
MANUAL SECTIONS
The standard sections of the manual include:
1 User Commands
2 System Calls
3 C Library Functions
4 Devices and Special Files
5 File Formats and Conventions
6 Games et. Al.
7 Miscellanea
8 System Administration tools and Deamons
Distributions customize the manual section to their specifics, which often include additional sec-
tions.
BSD系
Mac OS X 10.9.2
man manpages より。
1 General User Commands
2 System Calls
3 Library Routines (*)
4 Special Files and Sockets
5 File formats and Conventions
6 Games and Fun Stuff
7 Miscellaneous Documentation
8 System Administration
9 Kernel and Programming Style
n Tcl/Tk
(*) Excludes library routines that merely wrap system calls. Those routines are covered in section 2.
OpenBSD 5.3
man man より(インデントが深かったので調整した)。
[-s] section
Restricts the directories that man will search to a specific
section. The currently available sections are:
1 General commands (tools and utilities).
2 System calls and error numbers.
3 Libraries.
3f Fortran programmer's reference guide.
3p perl(1) programmer's reference guide.
4 Device drivers.
5 File formats.
6 Games.
7 Miscellaneous.
8 System maintenance and operation commands.
9 Kernel internals.
X11 An alias for X11R6.
X11R6 X Window System.
local Pages located in /usr/local.
n Tcl/Tk commands.
The man configuration file, man.conf(5), specifies the possible
section values, and their search order. Additional sections may
be specified.