帮助命令man  (manual)

比如我们可以看下man命令的解释

[root@localhost ~]# man man

MAN(1)                                                  Manual pager utils                                                 MAN(1)

NAME

man - an interface to the on-line reference manuals

SYNOPSIS

man [-C file] [-d] [-D] [--warnings[=warnings]] [-R encoding] [-L locale] [-m system[,...]] [-M path] [-S list] [-e exten‐

sion] [-i|-I] [--regex|--wildcard] [--names-only] [-a] [-u] [--no-subpages] [-P pager]  [-r  prompt]  [-7]  [-E  encoding]

[--no-hyphenation]   [--no-justification]   [-p   string]   [-t]  [-T[device]]  [-H[browser]]  [-X[dpi]]  [-Z]  [[section]

page ...] ...

man -k [apropos options] regexp ...

man -K [-w|-W] [-S list] [-i|-I] [--regex] [section] term ...

man -f [whatis options] page ...

man -l [-C file] [-d] [-D] [--warnings[=warnings]] [-R encoding] [-L locale] [-P pager] [-r prompt] [-7] [-E encoding] [-p

string] [-t] [-T[device]] [-H[browser]] [-X[dpi]] [-Z] file ...

man -w|-W [-C file] [-d] [-D] page ...

man -c [-C file] [-d] [-D] page ...

man [-?V]

DESCRIPTION

man  is the system's manual pager. Each page argument given to man is normally the name of a program, utility or function.

The manual page associated with each of these arguments is then found and displayed. A section, if provided,  will  direct

man to look only in that section of the manual.  The default action is to search in all of the available sections, follow‐

Manual page man(1) line 1 (press h for help or q to quit)

查看完 按 "q"键,离开

我们看下ls

man ls

这里其实有很多行 我们可以按键盘的向下键盘,来显示下方隐藏的内容;

当然也可以搜索

/  加搜索内容

比如搜索 -d

/-d

这里的1是man的级别; 这里的1是查看命令的帮助

1:查看命令的帮助

2:查看可被内核调用的函数的函数的版主

3:查看函数和函数库的帮助

4:查看特殊文件的帮助(主要是/dev目录下的文件)

5:查看配置文件的帮助

6:查看游戏的帮助

7:查看其他杂项的帮助

8:查看系统管理员可用命令的帮助

9:查看和内核相关文件的帮助

查看命令拥有哪个级别的帮助

man -f 命令

相当于

whatis 命令

举例

man -5 passwd

man -4 null

man -8 ip

比如查看ls的命令级别

[root@localhost ~]# man -f ls

ls (1)               - list directory contents

[root@localhost ~]#

只有1个

[root@localhost ~]# man -f ip

ip (8)               - show / manipulate routing, devices, policy routing...

[root@localhost ~]#

查看和命令相关的所有帮助

man -k 命令

相当于

appropos 命令

例如

apropos passwd

[root@localhost ~]# man -k passwd

chpasswd (8)         - 批量更新密码

gpasswd (1)          - 管理员 /etc/group 和 /etc/gshadow

grub2-mkpasswd-pbkdf2 (1) - Generate a PBKDF2 password hash.

lpasswd (1)          - Change group or user password

pam_localuser (8)    - require users to be listed in /etc/passwd

passwd (1)           - update user's authentication tokens

sslpasswd (1ssl)     - compute password hashes

pwhistory_helper (8) - Helper binary that transfers password hashes from ...

[root@localhost ~]#

能把相关的命令都查询出来;

Centos之帮助命令的更多相关文章

  1. CentOS最常用命令及快捷键整理

    CentOS最常用命令及快捷键整理  整理了Linux常用命令及快捷键. 常用命令: 文件和目录: # cd /home                        进入 '/home' 目录 # ...

  2. centos的常用命令

    公司服务器主要是centos,第一篇就从centos的常用命令开始吧. 转载自:http://www.cnblogs.com/zitsing/archive/2012/05/02/2479009.ht ...

  3. CentOS 使用yum命令安装Java SDK(openjdk)

    CentOS 6.X 和 5.X 自带有OpenJDK runtime environment  (openjdk).它是一个在linux上实现开源的java 平台.CentOS  yum 命令 安装 ...

  4. CentOS基本的命令与快捷建

    由于我的计算机在安装linux系统时,计算机出现了问题,并没有安装ubuntu而是安装的centos.虽然两者属于linux的不同版本,但是在具体的操作上大同小异.在学习linux的各种指令和快捷键的 ...

  5. CentOS中service命令与/etc/init.d的关系以及centos7的变化

    缘由 由于个人经常在ubuntu和centos 系统中切换,习惯了以前的 ubuntu中 通过 /etc/init.d/xxx 进行软件服务控制.后来发现centos7中换了服务的控制方式:servi ...

  6. CentOS下rpm命令详解

    CentOS下rpm命令详解 rpm,Redhat Package Manager,即为红帽公司为RHEL开发的专用包管理器,后来更改为RPM Package Manager,类似于GNU项目,使用递 ...

  7. CentOS 使用yum命令安装出现错误提示”could not retrieve mirrorlist http://mirrorlist.centos.org

    CentOS 使用yum命令安装出现错误提示"could not retrieve mirrorlist http://mirrorlist.centos.org这个错误, 在网上找了好多, ...

  8. centos安装tree命令

    centos安装tree命令 sudo yum -y install tree windows安装tree命令 我的另一篇

  9. CentOS下yum命令详解

    CentOS下yum命令详解 Yum: 即Yellowdog Update Modifier,是一种基于rpm的包管理工具 yum命令使用示例 显示yum仓库 显示所有仓库 yum repolist ...

  10. Centos 配置ifconfig命令

    刚装完CentOS 后ifconfig命令可能是不可用的,那么需要以下配置 ip addr vi /etc/sysconfig/network-scripts/ifcfg-xx (ONBOOT=yes ...

随机推荐

  1. 求n个数中前k个数,按之前的顺序输出(HK IPM)

    For smaller k: #include <cstdio> #include <cstdlib> #include <cstring> #include &l ...

  2. Keepalived LVS-DR单网络双活双主配置模式

    Keepalived LVS-DR单网络双活双主配置模式 Linux就该这么学 今天 LVS是Linux Virtual Server的简写,意即Linux虚拟服务器,是一个虚拟的服务器集群系统.LV ...

  3. 火狐,discuz同步登录问题解决

    <script type="text/javascript" src="http://******/uc/api/uc.php?time=1503386589&am ...

  4. JSON学习笔记(总结自w3school)

    1. JSON是一种文本. 2. JSON即JavaScript Object Notation(JavaScript对象表示法). JSON用来存储和交换文本信息. JSON比xml更小, 更快, ...

  5. linux网络编程框架

    OSI七层模型与TCP四层模型 OSI七层模型与TCP四层模型 BS和CS服务器架构 (1)CS架构介绍(client server,客户端服务器架构)(2)BS架构介绍(broswer server ...

  6. Java基础-Collection子接口之Set接口

    Java基础-Collection子接口之Set接口 作者:尹正杰 版权声明:原创作品,谢绝转载!否则将追究法律责任. 学习Collection接口时,记得Collection中可以存放重复元素,也可 ...

  7. UIViewController的初始化

    UIViewController的初始化一般有两个: -(instancetype)init; -(instancetype)initWithNibName:(NSString *)nibNameOr ...

  8. 悬浮按钮css

    .floating-button { color: #fff; position: absolute; right: 16px; bottom: 88px; width: 56px; height: ...

  9. Windows下配置Nginx+php7

    第一部分:准备工作 第二部分:安装nginx 第三部分:安装php(这里主要讲nginx配置启动php,以cgi运行php)nginx配置文件是conf文件夹里的nginx.conf 在这里,我简单说 ...

  10. Android 5.0 最应该实现的8个期望

    毫无疑问,Android 5 将是令人兴奋的操作系统,因为 Android4.0 至 4.4 版本之间并没有显著的差异,显然谷歌会在 5.0 版本中进行一些较大幅度的革新.那么,代号为“柠檬芝士蛋糕” ...