为什么类 Unix 环境中的程序名称后面有数字?

发布于 2024-07-14 08:24:56 字数 119 浏览 7 评论 0原文

例如,当我运行 man ioctl 时,页面顶部显示 IOCTL(2) 。 这意味着什么? 有IOCTL(1)吗? 以及如何在这些之间导航?

For example, when I run man ioctl the page says IOCTL(2) at the top. What does that mean? Is there an IOCTL(1)? And how does one navigate between these?

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

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

发布评论

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

评论(2

可可 2024-07-21 08:24:56

这是手册页部分。 从内存中看,第 1 节是用户程序,第 2 节是系统调用,第 3 节是标准 C 库调用,第 5 节是文件格式。

维基百科在此处提供了完整的解释。

It's the man page section. From memory, section 1 is user programs, 2 is system calls, and 3 is standard C library calls, and 5 is file formats.

Wikipedia has the full explanation here.

明天过后 2024-07-21 08:24:56

这是手册页的章节号。 例如

 man printf

(应该)为您提供第 1 部分,printf bash 命令,同时

 man 3 printf

为您提供 C 函数 printf

That's the man page section number. For example

 man printf

(should) Give you section 1, printf the bash command, while

 man 3 printf

gives you the C function printf.

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