Linux apropos --根据关键字搜索命令
2016-04-08 09:23
661 查看
用途说明
因为Linux的Shell中使用的是命令行方式,有时候会忘记执行特定任务的命令,就可以使用apropos找出来。等同于man-k,在使用的时候还是觉得用man -k来的好,毕竟apropos这个命令有些难记。
此命令需要指定一个keyword作为参数,查找与该keyword有关的命令。手册页中的解释是:在whatis数据库中搜索字符串。searchthe whatis database for strings。
常用参数
无。
命令格式为:aproposkeyword
等同于:man -k keyword
使用示例
示例一
[root@web ~]#
apropos who
at.allow[at] (5) - determine who cansubmit jobs via at or batch
at.deny[at] (5) - determine whocan 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 cansubmit jobs via at or batch
at.deny[at] (5) - determine whocan 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的输出是相同的。
示例二
[root@web ~]#
apropos apropos
apropos (1) - search the whatis database for strings
man (rpm) - A set of documentation tools: man, apropos and whatis.
[root@web ~]#
man -k apropos
apropos (1) - search the whatis database for strings
man (rpm) - A set of documentation tools: man, apropos and whatis.
示例三
[root@web ~]#
apropos sort
FcFontSort (3) - Return list of matching fonts
alphasort[scandir] (3) - scan a directory for matching entries
bsearch (3) - binary search of a sorted array
bsearch (3p) - binary search a sorted table
bunzip2[bzip2] (1) - a block-sorting filecompressor, v1.0.3
bzip2 (1) - a block-sorting file compressor, v1.0.3
comm (1) - compare two sorted files line by line
ldap_sort_entries (3) - LDAP sorting routines
ldap_sort_entries[ldap_sort] (3) - LDAP sorting routines
ldap_sort_entries[ldap_sort_strcasecmp] (3) - LDAP sorting routines
ldap_sort_entries[ldap_sort_values] (3) - LDAP sorting routines
ldap_sort_strcasecmp(3) - LDAP sorting routines
ldap_sort_strcasecmp[ldap_sort] (3) - LDAP sorting routines
ldap_sort_strcasecmp[ldap_sort_entries] (3) - LDAP sorting routines
ldap_sort_strcasecmp[ldap_sort_values] (3) - LDAP sorting routines
ldap_sort_values (3) - LDAP sorting routines
ldap_sort_values[ldap_sort] (3) - LDAP sorting routines
ldap_sort_values[ldap_sort_entries] (3) - LDAP sorting routines
ldap_sort_values[ldap_sort_strcasecmp] (3) - LDAP sorting routines
qsort (3) - sorts an array
qsort (3p) - sort a table of data
sort (1) - sort lines of text files
sort (1p) - sort, merge, or sequence check text files
sort (3pm) - perl pragma to control sort() behaviour
tsort (1) - perform topological sort
tsort (1p) - topological sort
versionsort[scandir] (3) - scan a directory for matching entries
因为Linux的Shell中使用的是命令行方式,有时候会忘记执行特定任务的命令,就可以使用apropos找出来。等同于man-k,在使用的时候还是觉得用man -k来的好,毕竟apropos这个命令有些难记。
此命令需要指定一个keyword作为参数,查找与该keyword有关的命令。手册页中的解释是:在whatis数据库中搜索字符串。searchthe whatis database for strings。
常用参数
无。
命令格式为:aproposkeyword
等同于:man -k keyword
使用示例
示例一
[root@web ~]#
apropos who
at.allow[at] (5) - determine who cansubmit jobs via at or batch
at.deny[at] (5) - determine whocan 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 cansubmit jobs via at or batch
at.deny[at] (5) - determine whocan 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的输出是相同的。
示例二
[root@web ~]#
apropos apropos
apropos (1) - search the whatis database for strings
man (rpm) - A set of documentation tools: man, apropos and whatis.
[root@web ~]#
man -k apropos
apropos (1) - search the whatis database for strings
man (rpm) - A set of documentation tools: man, apropos and whatis.
示例三
[root@web ~]#
apropos sort
FcFontSort (3) - Return list of matching fonts
alphasort[scandir] (3) - scan a directory for matching entries
bsearch (3) - binary search of a sorted array
bsearch (3p) - binary search a sorted table
bunzip2[bzip2] (1) - a block-sorting filecompressor, v1.0.3
bzip2 (1) - a block-sorting file compressor, v1.0.3
comm (1) - compare two sorted files line by line
ldap_sort_entries (3) - LDAP sorting routines
ldap_sort_entries[ldap_sort] (3) - LDAP sorting routines
ldap_sort_entries[ldap_sort_strcasecmp] (3) - LDAP sorting routines
ldap_sort_entries[ldap_sort_values] (3) - LDAP sorting routines
ldap_sort_strcasecmp(3) - LDAP sorting routines
ldap_sort_strcasecmp[ldap_sort] (3) - LDAP sorting routines
ldap_sort_strcasecmp[ldap_sort_entries] (3) - LDAP sorting routines
ldap_sort_strcasecmp[ldap_sort_values] (3) - LDAP sorting routines
ldap_sort_values (3) - LDAP sorting routines
ldap_sort_values[ldap_sort] (3) - LDAP sorting routines
ldap_sort_values[ldap_sort_entries] (3) - LDAP sorting routines
ldap_sort_values[ldap_sort_strcasecmp] (3) - LDAP sorting routines
qsort (3) - sorts an array
qsort (3p) - sort a table of data
sort (1) - sort lines of text files
sort (1p) - sort, merge, or sequence check text files
sort (3pm) - perl pragma to control sort() behaviour
tsort (1) - perform topological sort
tsort (1p) - topological sort
versionsort[scandir] (3) - scan a directory for matching entries
相关文章推荐
- Linux ant --强大的Java开发构建工具
- Linux系统编程之错误处理:perror,strerror和errno
- Linux at --在指定时间执行一次任务
- linux字符驱动之点亮LED
- linux字符驱动之中断按键
- hadoop2.7.2基于centos完全分布式安装
- linux下bus、devices和platform的基础模型
- linux字符驱动之查询按键
- Linux学习--gdb调试
- linux下vi命令大全
- VMWare下克隆或移植过来的centOS6.5虚拟机不能上网的解决
- 集群中的会话处理
- linuxGPIO
- 史上最全Linux提权后获取敏感信息方法 20140121
- linux常用命令讲解
- Linux入侵取证:从一次应急事件讲起 20141111
- 剖析:一次入侵Linux服务器的事件记录 20131222
- ArchLinux 扬声器和麦克风不能使用的问题
- Linux环境下多进程和多线程的优缺点
- CentOS 7 use utfs-3g to recongnize the ntfs system