男人部分

发布于 2024-07-08 16:28:27 字数 1477 浏览 7 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

断肠人 2024-07-15 16:28:27

将部分编号放在要引用的项目前面。 例如,要从库部分访问 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:

man 3 sysctl

and to access the sysctl tool from the system administrator's section, you would write:

man 8 sysctl
手心的海 2024-07-15 16:28:27

要添加 Jason 所说的内容:如果您不确定某些内容位于哪个部分,您也可以通过键入以下内容查看给定主题的所有手册页

man -a topic

这对于诸如 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

man -a topic

This is useful for topics such as printf, for which there is both a command and a C function that do similar things.

梦明 2024-07-15 16:28:27

例如,使用 -s 标志:

man -s 2 read

您可能想查看一下

man intro

以了解什么在哪里。

HTH。

干杯,

罗布

use the -s flag, for example:

man -s 2 read

you might like to look at

man intro

to get an idea of what's where.

HTH.

cheers,

Rob

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文