目录
查看命令帮助
命令搜索
查看命令帮助
在使用的过程中获取命令注释和帮助非常重要,相当于R语言中的help查看函数的使用功能。
[root@####### ~]# whatis ls
ls (1) - list directory contents
[root@############ ~]# ls --help
用法:ls [选项]... [文件]...
List information about the FILEs (the current directory by default).
Sort entries alphabetically if none of -cftuvSUX nor --sort is specified.
man lsManual page ls(1) line 1 (press h for help or q to quit)#查看和离开
LS(1) User Commands LS(1)
NAME
LS(1) User Commands LS(1)
NAME
ls - list directory contents
SYNOPSIS
ls [OPTION]... [FILE]...
DESCRIPTION
List information about the FILEs (the current directory by default). Sort entries alphabetically if none of -cftu‐
vSUX nor --sort is specified.
Mandatory arguments to long options are mandatory for short options too.
命令搜索
man -k userad:man -k +搜索命令的方式
[root@######## ~]# man -k userad
useradd (8) - 创建一个新用户或更新默认新用户信息
luseradd (1) - Add an user
[root@iZbp1ajgi9pp0204trc1gzZ ~]#