在联机帮助页中的命令后括号中的数字是什么意思?
通常,我在联机帮助页中读取命令time(1)
或printf(3)
之类的内容。
括号中的数字代表什么?
我相信你指的是手册页。
该数字指的是记录命令的联机帮助页的部分。这是一个历史的Unixism。 见man man
。
要访问不同的部分,请在命令中提供数字,例如:
man 1 time man 7 time
以下是手册页部分:
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 conventions), eg man(7), groff(7) 8 System administration commands (usually only for root) 9 Kernel routines [Non standard]