当我在shell提示符下键入'man read'时,它会显示read shell命令,如何打开read()C函数的文档。 我的问题不仅仅是读取适用于类似的其他函数,如sleep()
当它发生时我经常跑到https://linux.die.net并在那里引用文档,我相信有办法从shell提示符本身到达右边的man页面
答案 0 :(得分:2)
man <section #> <page>
从男人手册页:
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]
要查找给定页面的哪些部分,您可以使用-k
标志:
$ man -k ^sleep$
sleep (1) - delay for a specified amount of time
sleep (3) - sleep for a specified number of seconds