一天一条Linux指令-apropos

用途说明

因为Linux的Shell中使用的是命令行方式,有时候会忘记执行特定任务的命令,就可以使用apropos找出来。等同于man -k,在使用的时候还是觉得用man -k来的好,毕竟apropos这个命令有些难记。

此命令需要指定一个keyword作为参数,查找与该keyword有关的命令。手册页中的解释是:在whatis数据库中搜索字符串。search the whatis database for strings。

 

常用参数

无。

命令格式为:apropos keyword

等同于:man -k keyword

使用示例

示例一

[root@web ~]# apropos who 
at.allow [at]        (5)  - determine who can submit jobs via at or batch
at.deny [at]         (5)  - determine who can submit jobs via at or batch
jwhois               (1)  - client for the whois service
jwhois              (rpm) - Internet whois/nicname client.
w                    (1)  - Show who is logged on and what they are doing
who                  (1)  - show who is logged on
who                  (1p)  - display who is on the system
whoami               (1)  - print effective userid

[root@web ~]# man -k who 
at.allow [at]        (5)  - determine who can submit jobs via at or batch
at.deny [at]         (5)  - determine who can submit jobs via at or batch
jwhois               (1)  - client for the whois service
jwhois              (rpm) - Internet whois/nicname client.
w                    (1)  - Show who is logged on and what they are doing
who                  (1)  - show who is logged on
who                  (1p)  - display who is on the system
whoami               (1)  - print effective userid

从以上输出来看,apropos和man -k的输出是相同的。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值