`

我使用过的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命令及Shell脚本使用

    ### Linux命令及Shell脚本使用详解 #### 一、Linux常用命令详解 ##### 1. cp 命令 - 文件拷贝 - **语法**: `cp [选项] 源 目标` - **功能**: 复制文件或目录 - `cp sample/* asmpl1`: 将目录`sample`下的所有文件...

    Linux命令手册 运维工程师必备手册

    ### Linux命令手册:运维工程师必备知识点详解 #### 标题:Linux命令手册 运维工程师必备手册 #### 描述:Linux命令手册 运维工程师必备手册 #### 标签:Linux命令 RHCA RHCE #### 部分内容概述及扩展知识点: ...

    Linux常用命令简介

    5. **apropos** - 通过搜索关键字,列出所有相关命令的简短描述,如`apropos pwd`可以找到与“pwd”相关的命令。 **文件处理命令:** - **cd** - 改变当前工作目录。 - **ls** - 列出目录内容。 - **mkdir** - 创建...

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

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

    linuxlinux命令大全linuxlinux

    - **Man -k**: 使用 `apropos` 关键字搜索手册页,如 `man -k info`。 - **Info**: 查看 Info 手册,如 `info page`。 - **Tab**: 在 Info 中跳转到下一个节点。 - **Enter**: 跳转到指定的节点。 - **B**: 回到上一...

    java软件工程师面试 -Linux常用命令.docx

    在Java软件工程师的面试中,对Linux命令的熟悉程度常常是评估候选人技术能力的一个重要方面。Linux操作系统以其稳定性和灵活性被广泛应用于服务器环境,因此掌握一些基础的Linux命令对于开发人员来说至关重要。 一...

    Linux基本命令.zip

    - `apropos`: 搜索关键字,找到相关的命令。 2. **文件操作** - `ls`: 列出目录内容,可使用`-l`、`-a`等选项改变显示方式。 - `cd`: 更改当前工作目录。 - `pwd`: 显示当前工作目录。 - `touch`: 创建新文件...

    Linux的常用经典命令(持续更新).pdf

    apropos命令是一个用于搜索手册页的关键字搜索工具。如果用户不记得具体命令但知道需要执行的操作相关关键词时,可以使用apropos命令进行搜索。例如,想要控制音量但忘记具体命令时,可以尝试使用apropos sound来...

    Linux常用命令全集

    ### Linux常用命令全集 #### 引言 随着信息技术的发展,Linux作为一种开源的操作系统,在服务器领域及嵌入式系统中占据了举足轻重的地位。它不仅免费,而且因其稳定...84. **apropos** - 搜索命令或手册页的关键字。 ...

    常用Linux 命令和工具.pdf

    ### 常用Linux命令和工具详解 #### B.1 通常的规则 在Linux系统中,很多命令的命名遵循一定的惯例,这有助于用户记忆和理解命令的功能。根据描述,Red Hat Linux(以及大多数Unix-like系统)中的命令遵循以下规律...

    鸟哥的私房菜——基础篇PDF

    - apropos:根据关键字搜索命令或说明。 - bash:Bourne Again SHell,Linux下的标准shell。 - cat:显示文本文件内容。 - chage:改变用户密码过期信息。 - chmod:改变文件或目录的权限。 - chown:改变文件或目录...

    Linux命令中英文对照(一)

    对应的中文命令是「手册页搜索」,其功能是显示包含特定关键字的所有手册页的列表。 21. apt:Advanced Package Tool, a package management system for Debian and derivatives。 对应的中文命令是「高级软件包...

    unix操作系统实验报告.doc

    本文档是 Unix 操作系统实验报告,涵盖了 Linux 平台下的基本命令,包括 Linux 在线帮助 man、apropos、at、cat、chmod、chown、cp 等命令的使用和解释。 一、 Linux 在线帮助 man Linux 在线帮助 man 是 Linux ...

    Linux和Win的基础命令.docx

    19. **寻找相关命令**: `apropos` 在Linux中可以查找与关键字相关的命令,Windows可能需要使用搜索引擎。 这些基础命令构成了Linux和Windows操作系统交互的基础,熟练掌握它们能显著提高工作效率。通过不断地练习和...

    Linux常用命令

    - `apropos <keyword>` 关键词搜索,用于找到含有关键字的命令的手册页。 21. **echo 回显命令** - `-n` 输出时不换行。 - `-E` 禁用转义字符。 - `-e` 启用转义字符。 - 示例:`echo "Host $HOST_DOWN_NAME ...

    Linux基础学习篇

    - apropos:用于搜索帮助文档中含有指定关键字的命令。 - cat:用于连接文件并打印到标准输出设备。 - cd:更改当前目录。 - chmod:更改文件或目录的权限设置。 - chown:用于更改文件或目录的所有者。 - chroot:...

    ubuntu终端命令+android 命令

    查询超文本命令手册、<whatis> 显示命令简介、<apropos> 通过关键字查询手册。 3. 用户管理相关命令:<su> 切换到其他用户、<useradd> 追加用户、<adduser> 追加用户、<userdel> 删除用户、<usermod> 修改用户设置、...

    linux命令集

    26. `apropos`:搜索命令的关键字,类似`man -k`。 27. `gzip`:压缩文件,生成`.gz`格式的压缩文件,原始文件会被删除。 28. `gunzip`:解压缩`.gz`格式的文件。 29. `tar`:用于打包文件或目录,可以与其他选项...

    linux命令大全,想学linux的从这里开始

    29. **apropos**: 通过关键字搜索命令手册。 #### 用户和组管理 1. **su**: 切换到另一个用户的身份。 2. **useradd**: 添加新用户账户。 3. **adduser**: 添加新用户账户(某些发行版的别名)。 4. **userdel**: ...

Global site tag (gtag.js) - Google Analytics