linux中whatis命令的输出中括号内的数字是什么意思

bob*_*obo 2 linux command-line-interface

例如,

[root@fedora ~]# whatis pwd
pwd (1p) - return working directory name
pwd (1) - print name of current/working directory
pwd [builtins] (1) - bash built-in commands, see bash(1)
pwd.h [pwd] (0p) - password structure
Run Code Online (Sandbox Code Playgroud)

那些 0p,1,1p 是什么?有时,我也会在括号中看到 rpm 一词。

Pau*_*lin 8

手册页部分。您可以通过键入来消除您想要的手册部分的歧义

man 1 pwd
Run Code Online (Sandbox Code Playgroud)

例如,假设你输入

allhats2:~> whatis crontab
crontab (5)          - tables for driving cron
crontab (1)          - maintain crontab files for individual users (V3)
Run Code Online (Sandbox Code Playgroud)

并且您想查看有关表结构的条目,您可以键入

man 5 crontab
Run Code Online (Sandbox Code Playgroud)