Linux下的man手册怎么确定是man 1还是2或3

例如我要查询C语言的open函数,shell下man open

给出的解释是openvt - start a program on a new virtual terminal (VT) …,不是我想要看的open函数啊!

解决办法: man -a open,先输出上述的信息,q结束后,输出C语言的open信息。还有个简洁的方法,man 2 open,这个2怎么来的?apropos命令查询

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 conven‐
tions), e.g. man(7), groff(7)
8 System administration commands (usually only for root)
9 Kernel routines [Non standard]
1可执行程序或 shell 命令
2系统调用 (内核提供的功能)
3库调用 (程序库中的函数)
4特殊文件 (通常在/dev 中找到)
5文件格式和约定, 如
6游戏
7杂项 (包括宏包和
例如 man(7)、groff(7)
8系统管理命令 (通常仅适用于根)
9内核例程 [非标准]

open (1) - start a program on a new virtual terminal …
open (2) - open and possibly create a file or device
打开 (1)-在新的虚拟终端上启动程序…。
打开 (2)-打开并可能创建文件或设备

  • 3
    点赞
  • 13
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

公孙无语

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值