マニュアルページの数字はどういう意味ですか? [コピー]

マニュアルページの数字はどういう意味ですか? [コピー]

重複の可能性:
マニュアルページの数字はどういう意味ですか?

と入力すると、マンページの左上と右上に表示されます man lsLS(1)

私もインターネットでこのように引用されたプログラムを見たことがあります。

前任者。man(1), xman(1x), apropos(1), makewhatis(8) and catman(8).

この数字(時々文字)とは何ですか?

ベストアンサー1

これは章番号です。ご覧ください。

man man

セクションが提供されると、人々はマニュアルの対応するセクションだけを見るように案内されます。基本的な作業は、事前定義された順序で利用可能なすべてのセクションを検索し、ページが複数のセクションに存在していても最初に見つかったページのみを表示することです。

    The table below shows the section numbers of the manual followed by the types of pages they contain.


    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), e.g. man(7), groff(7)
    8   System administration commands (usually only for root)
    9   Kernel routines [Non standard]

たとえば、次のstat3つのセクションがあります。

$ man -k stat | grep "^stat "
stat (1)             - display file or file system status
stat (2)             - get file status
stat (3p)            - get file status

だから、入力したら

man 1 stat

それは違う

man 2 stat

おすすめ記事