man page 通常是這樣使用的:
man test
TEST(1) User Commands TEST(1)
NAME
test - check file types and compare values
SYNOPSIS
test EXPRESSION
test
[ EXPRESSION ]
[ ]
[ OPTION
DESCRIPTION
Exit with the status determined by EXPRESSION.
--help display this help and exit
--version
output version information and exit
但是,有時我們會在 man 後面再加上 -a ﹑ -2 -3 之類的數字,這些數字是什麼意思呢?
其實我們回到起初,就是一個很好玩的操作:「看操作手冊的操作手冊」
意即下:
man man
你就可以在「操作手冊的操作手冊裡」看到,這些數字所代表的意涵:
1 Executable programs or shell commands
2 System calls (functions provided by the kernel)
3 Library calls (functions within program libraries)
4 Special files (usually found in /dev)
5 File formats and conventions eg /etc/passwd
6 Games
7 Miscellaneous (including macro packages and conven‐
tions), e.g. man(7), groff(7)
8 System administration commands (usually only for root)
9 Kernel routines [Non standard]
沒有留言:
張貼留言