目录
一、man(Manual)
man [OPTION...] [SECTION] PAGE...
$ man ls
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
-cftuvSUX nor --sort is specified.
Mandatory arguments to long options are mandatory for short options too.
-a, --all
do not ignore entries starting with .
-A, --almost-all
do not list implied . and ..
--author
with -l, print the author of each file
-b, --escape
print C-style escapes for nongraphic characters
二、通配符
1、*:用于表示任意长度的任何字符
实例:列出 /etc
目录下所有的配置文件
$ ls -la /etc/*.conf
-rw-r--r--. 1 root root 55 Aug 8 2019 /etc/asound.conf
-rw-r--r--. 1 root root 1937 Mar 30 17:36 /etc/chrony.conf
-rw-r--r--. 1 root root 1285 Aug 9 2019 /etc/dracut.conf
-rw-r--r--. 1 root root 112 Aug 6 2019 /etc/e2fsck.conf
......
2、?:用于表示任意一个字符
实例:列出 /etc