理解和使用工具(七)-使用Manual Pages 获得帮助

你是记不住所有的命令和它们所有的选项的,所以你需要那个男人的帮助——J.W

 man 命令,将命令分为9个section 或级别:

Section 1User Command
Section 2System Calls
Section 3Library Functions
Section 4Special Files (Device Files)
Section 5File Formats (Configuration Files)
Section 6Games and Screensavers
Section 7Protocols and file systems
Section8System Admin and privileged command
Section 9Linux Kernel API

这几个section的设置,是为了让用户方便的知道自己正在查询哪个命令。

man 1 passwd
man 5 passwd

上面这两条命令查询的是不同的命令,中间的数字代表section不同。

进入man page后,按h可以进入帮助页,按q可以退输入出。

输入/string 可以用来查找string,比如要查找not这个单词,输入/not。

 

如果想要得到和关键字相关的所有命令的信息,使用-k关键字,比如我要知道和passwd相关的命令:

man -k passwd

将会列出所有和passwd相关的命令。

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值