`

我使用过的Linux命令之apropos - 根据关键字搜索命令

阅读更多

我使用过的Linux命令之apropos - 根据关键字搜索命令

本文链接:http://codingstandards.iteye.com/blog/774570    (转载请注明出处)

用途说明

因为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的输出是相同的。

示例二

[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 file compressor, 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

问题思考

相关资料

【1】51CTO.COM Linux apropos命令详细列表

【2】建站教学网 Linux命令行知识:apropos查找和sort相关的命令

【3】爱词霸在线词典 apropos

 

返回 我使用过的Linux命令系列总目录

 

0
0
分享到:
评论

相关推荐

    中文Linux Man 文档

    中文Linux Man 文档 ac--输出用户连接时间  access--确定文件是否可以存取访问  ali--list mail aliases  apm--查询高级电源管理(APM)BIOS  apropos--search the whatis database for strings  at-- ...

    apropos命令 在whatis数据库中查找字符串

    如果你不知道完成某个特定任务所需要命令的名称,可以使用一个关键字通过Linux apropos实用程序来搜索它。该实用程序可以搜索关键字并且显示所有包含匹配项的man页面的简短描述。另外,使用man实用程序和-k(关键字...

    Linux 命令入门文档.zip

    学会使用 `apropos` 去查找文档。知道有些命令并不对应可执行文件,而是在 Bash 内置好的,此时可以使用 `help` 和 `help -d` 命令获取帮助信息。你可以用 `type 命令` 来判断这个命令到底是可执行文件、shell 内置...

    linux命令 linux教程

    1.adduser命令:增加一个系统用户 ... 4.apropos命令:查找用户手册的名字和相关描述  5.arch命令:输出主机的体系结构  6.batch命令:执行批处理  7.bg命令:将程序放在后台执行  8.cd命令:切换目录

    LINUX 24学时教程004

    4.2.6 使用whatis和apropos命令获取命令 简介 51 4.3 阅读子目录和文件 52 4.3.1 使用ls命令列出子目录的内容清单 52 4.3.2 使用dir和vdir命令列出子目录的 内容清单 55 4.3.3 使用cat命令列出及合并文件 56 4.3.4 ...

    Linux命令大全速查手册

    Linux命令大全速查手册完整版…… 第1章 系统管理  1.1 adduser指令:增加一个系统用户  1.2 apm指令:高级电源管理  1.3 apmsleep指令:APM进入备用或者休眠状态  1.4 apropos指令:查找使用手册的名字和...

    Linux命令笔记

    4:whereis 搜索命令所在目录级帮助文档路径 语法:whereis[命令名称] 5:grep 在文件中搜索字串匹配的行并输出 语法:grep -iv[指定字串][文件] 6:uname 显示当前操作系统名称 常用命令/压缩解压 1:gzip 压缩文件 ...

    LINUX 24学时教程

    4.2.6 使用whatis和apropos命令获取命令 简介 51 4.3 阅读子目录和文件 52 4.3.1 使用ls命令列出子目录的内容清单 52 4.3.2 使用dir和vdir命令列出子目录的 内容清单 55 4.3.3 使用cat命令列出及合并文件 56 4.3.4 ...

    UNIX操作系统命令大全

    用途:apropos查找使用说明的名称。 举例:apropos print(等价于man -k prink)。 arch 用途:arch获得机器体系结构的描述信息。 举例:arch。下面是arch输出的结果: sun4 将这个命令与uname进行比较。 ash 用途:...

    APropOS-开源

    应用程序属性组织并存储在中央位置。 那是APropOS的主要目的。 这个简单的Web应用程序允许开发人员将他们的application / build / i18n / ...属性放在一个地方,并从他们喜欢的任何地方访问它们。

    An A-Z Index of the Linux Command LIne

    linux 命令一览表 alias Create an alias • apropos Search Help manual pages (man ­k) apt­get Search for and install software packages (Debian/Ubuntu) aptitude Search for and install software ...

    kali linux基础配置文档

    kali linux基础配置文档

    Linux命令行技巧

    1,apropos whatis 2find -name '*.[ch]' | xargs grep -E 'expr'

    consult-lsp:LSP模式和Consult.el互相帮助

    咨询LSP模式集成 这是一个正在进行的工作介绍对我而言,使LSP模式优于eglot的主要命令是能够查看一个或所有工作空间中的所有错误。 由于我使用了咨询,因此让我们尝试在咨询/选择流程中模仿的一些功能屏幕截图指令...

    mac-os-x-terminal-commands:关于MAC OS X中终端命令的简单用法

    搜寻Whatis 资料库中的字串 apropos 看档案的扩充属性(extended attributes) 等同于 $ ls -leO@ file -rw-r--r-- 1 user staff uchg 675 12 23 11:33 /Users/user/file uchg就是扩充属性unchangeable e -> ...

    apropos, 为每个访问者提供适当图像的简单方法.zip

    apropos, 为每个访问者提供适当图像的简单方法 Apropos帮助你的站点为每个访问者提供适当的图像。 在响应和/或者本地化的网站中提供图像的多个版本可能是一件苦差事,但Apropos简化并自动化了这里任务。 而不是手动...

    Linux指令速查手册.part1.rar

    1.4 apropos指令:查找使用手册的名字和相关描述  1.5 arch指令:输出主机的体系结构  1.6 batch指令:执行批处理指令  1.7 bg指令:将程序放在后台执行  1.8 cd指令:切换目录  1.9 chfn指令:设置...

    linedit:适用于Common Lisp的Readline样式的行编辑器

    Linedit 是一个用 Common Lisp 编写...特征单行文本阅读器多行表格阅读器当前图像中包和符号的补全目录和文件名的补全apropos-word 和 describe-word 无限撤销无限杀圈无限历史括号匹配(不跨行) 多重历史在 SBCL 和

    webgl-physics-cyclone:被缺陷 3-D 笔记本打断。 处于“越野车”状态的原因。 实施“游戏物理引擎开发”(I.Miller、Morgan Kaufmann)Cyclone-Physics-Engine。 将在没有 webgl 的情况下继续工作并且是模块化的,首先

    我使用 GLMatrix 并阅读了 WebGL 初学者指南和以前的 Professional WebGL,并为这个物理引擎编写了我自己的指南。 这东西不是完成和发布只是为了好玩。 无论如何 - 在一个未知但相对较近的点更新(即使没有测试,...

Global site tag (gtag.js) - Google Analytics