| 
 | 
 
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册  
 
x
 
大家好,初学 Linux 命令,我在使用 whatis echo 命令时,有点不明白返回结果里的一个小细节: 
- $ whatis echo
 
 - echo (1)            - display a line of text
 
 - echo (3x)          - curses input options
 
  复制代码 
我不明白,这里 (1) 和 (3x) 指的是什么? 
当我使用 man echo 时,进入的手册里显示的是 echo(1),  那么这个 echo(3x) 又是什么呢? 
谢谢大家!
输入 
可以看到 man 一共有 9 个 section
 
echo (1) 
表示这个echo是属于 section 1
 
另一个例子是 printf 
这个既是shell命令又是C语言库函数 
你输入 main printf 的时候 man 怎么知道你需要哪个
 
shell命令在section 1 
库函数在section 3 
man 会选择数字最小的那个,这个例子就是 section 1 
也就是你输入
 
相当于输入
 
你可以输入
 
来查看库函数
 
echo (3x) 就是 section 3x 
我这边没有查到这个
 - 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, e.g. /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]
 
  复制代码 
 
 
 
 |   
 
 
 
 |