Bog*_*Bog 0 command-line shell terminal posix
什么是1?什么是3?这些号码叫什么?有完整的列表和解释吗?
$ whatis nvim
nvim (1) - edit text
$ whatis printf
printf (3) - formatted output conversion
printf (1) - format and print data
Run Code Online (Sandbox Code Playgroud)
谢谢 :)
这是部分编号,根据man man:
下表显示了手册的章节号以及其包含的页面类型。
1 可执行程序或 shell 命令
2 系统调用(内核提供的函数)
3 库调用(程序库中的函数)
4 特殊文件(通常位于 /dev 中)
5 文件格式和约定,例如 /etc/passwd
6 游戏
7 杂项(包括宏包和约定),例如
man(7)、groff(7)、man-pages(7)
8 系统管理命令(通常仅适用于 root)
9 内核例程 [非标准]
前任:
man 3 printf # C Linux Programmer's Manual
man 1 printf # User Commands
Run Code Online (Sandbox Code Playgroud)
man -k printf
[...]
sprintf (3) - formatted output conversion
swprintf (3) - formatted wide-character output conversion
vasprintf (3) - print to allocated string
[...]
Run Code Online (Sandbox Code Playgroud)