Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
将部分编号放在要引用的项目前面。 例如,要从库部分访问 sysctl 函数,您可以编写:
man 3 sysctl
要从系统管理员部分访问 sysctl 工具,您可以编写:
man 8 sysctl
Put the section number in front of the item you want to reference. For example, to access the sysctl function from the library section, you can write:
and to access the sysctl tool from the system administrator's section, you would write:
要添加 Jason 所说的内容:如果您不确定某些内容位于哪个部分,您也可以通过键入以下内容查看给定主题的所有手册页
man -a topic
这对于诸如 printf 之类的主题很有用,其中有一个命令和一个 C 函数可以执行类似的操作。
printf
To add to what Jason said: if you're not sure what section something is in, you can also see all of the man pages for a given topic by typing
This is useful for topics such as printf, for which there is both a command and a C function that do similar things.
例如,使用 -s 标志:
man -s 2 read
您可能想查看一下
man intro
以了解什么在哪里。
HTH。
干杯,
罗布
use the -s flag, for example:
you might like to look at
to get an idea of what's where.
HTH.
cheers,
Rob
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
暂无简介
文章 0 评论 0
接受
发布评论
评论(3)
将部分编号放在要引用的项目前面。 例如,要从库部分访问 sysctl 函数,您可以编写:
要从系统管理员部分访问 sysctl 工具,您可以编写:
Put the section number in front of the item you want to reference. For example, to access the sysctl function from the library section, you can write:
and to access the sysctl tool from the system administrator's section, you would write:
要添加 Jason 所说的内容:如果您不确定某些内容位于哪个部分,您也可以通过键入以下内容查看给定主题的所有手册页
这对于诸如
printf
之类的主题很有用,其中有一个命令和一个 C 函数可以执行类似的操作。To add to what Jason said: if you're not sure what section something is in, you can also see all of the man pages for a given topic by typing
This is useful for topics such as
printf
, for which there is both a command and a C function that do similar things.例如,使用 -s 标志:
您可能想查看一下
以了解什么在哪里。
HTH。
干杯,
罗布
use the -s flag, for example:
you might like to look at
to get an idea of what's where.
HTH.
cheers,
Rob