当我在shell中键入man regex时,这将加载
REGEX(3) Linux Programmer's Manual REGEX(3)
NAME
regcomp, regexec, regerror, regfree - POSIX regex functions
SYNOPSIS
........当我输入man 7 regex时,我会得到一个不同的手册页
REGEX(7) Linux Programmer's Manual REGEX(7)
NAME
regex - POSIX.2 regular expressions
DESCRIPTION
........这里发生了什么事?
发布于 2015-09-26 23:36:42
您可以在man man上找到更多关于这方面的信息。手册页被分成不同的部分。这样就可以将事物与相似的事物组合在一起,并且您可以在不同的地方使用相同的名称(比如,stat,它存在于几个部分中)。
在我以前的Fedora的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]https://unix.stackexchange.com/questions/232265
复制相似问题