这个问题在这里已有答案:
- 搜索哪个man部分包含给定条目 2个答案
例如: LS 命令只有第1章 MKDIR 命令有第1章和第1章2.是否有任何命令显示特定命令可用的章节数?
[root@localhost /]# man 1 ls
[root@localhost /]# man 2 ls
No entry for ls in section 2 of the manual
[root@localhost /]# man 3 ls
No entry for ls in section 3 of the manual
[root@localhost /]# man 4 ls
No entry for ls in section 4 of the manual
[root@localhost /]# man 5 ls
No entry for ls in section 5 of the manual
[root@localhost /]# man 6 ls
No entry for ls in section 6 of the manual
[root@localhost /]# man 7 ls
No entry for ls in section 7 of the manual
[root@localhost /]# man 8 ls
No entry for ls in section 8 of the manual
[root@localhost /]# man 1 mkdir
[root@localhost /]# man 2 mkdir
[root@localhost /]# man 3 mkdir
No entry for mkdir in section 3 of the manual
[root@localhost /]# man 4 mkdir
No entry for mkdir in section 4 of the manual
[root@localhost /]# man 5 mkdir
No entry for mkdir in section 5 of the manual
[root@localhost /]# man 6 mkdir
No entry for mkdir in section 6 of the manual
[root@localhost /]# man 7 mkdir
No entry for mkdir in section 7 of the manual
[root@localhost /]# man 8 mkdir
No entry for mkdir in section 8 of the manual
我认为这实际上并不重复。他想要一个章节计数,而不是一个位置
—
Journeyman Geek
@JourneymanGeek如果你打电话
—
slhck
man -a -w $command
那就是你会得到的,所以这是一个骗局。