使用man文档

目标

  通过man查找命令的使用说明

man手册的常见章节

章节 内容类型
1 用户命令(可执行命令和shell程序)
2 系统调用(从用户空间调用的内核例程)
3 库函数(由程序库提供)
4 特殊文件(如设备文件)
5 文件格式(用于许多配置文件和结构)
6 游戏(过去的有趣程序章节)
7 惯例、标准和其他(协议、文件系统)
8 系统管理和特权命令(维护任务)
9 Linux内核API(内核调用)

实操演示

  • 使用man文档查询命令手册
[root@jenkins ~]# man -k yum
find-repos-of-install (1) - report which Yum reposit...
repo-rss (1)         - generates an RSS feed from on...
repoclosure (1)      - display a list of unresolved ...
repodiff (1)         - list differences between two ...
repoquery (1)        - query information from Yum re...
reposync (1)         - synchronize yum repositories ...
verifytree (1)       - verify that a local yum repos...
yum (8)              - Yellowdog Updater Modified
yum-builddep (1)     - install missing dependencies ...
yum-complete-transaction (8) - attempt to complete f...
yum-config-manager (1) - manage yum configuration op...
yum-debug-dump (1)   - write system RPM configuratio...
yum-debug-restore (1) - replay Yum transactions capt...
yum-groups-manager (1) - create and edit yum''s group...
yum-langpacks (8)    - Plugin for yum
yum-shell (8)        - Yellowdog Updater Modified shell
yum-utils (1)        - tools for manipulating reposi...
yum.conf (5)         - Configuration file for yum(8).
yumdb (8)            - query and alter the Yum database
yumdownloader (1)    - download RPM packages from Yu...

使用man命令查找所需的命令手册,选项-k进行关键字查找对应的资料。

 

man文档简易操作

  • 语法:man 1-9 命令

上下键移动光标,pageup和pagedown进行翻页

/string 进行搜索

n 选择下一个匹配项

文档更新时间: 2022-01-29 09:13   作者:xiubao yan