「man 7 regex」から「7」の意味は何ですか? [コピー]

「man 7 regex」から「7」の意味は何ですか? [コピー]

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
........

ここで何が起こっているのでしょうか?

ベストアンサー1

これについての詳細は をご覧ください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]

おすすめ記事