NAME
ls -- list directory contents
SYNOPSIS
ls [-ABCFGHLOPRSTUW@abcdefghiklmnopqrstuwx1] [file ...]
DESCRIPTION
For each operand that names a file of a type other than directory,
ls displays its name as well as any requested, associated information.
For each operand that names a file of type directory,
ls displays the names of files contained within that directory,
as well as any requested, associated information.
EXAMPLE
1. 显示当前目录下面的所有文件,包括隐藏文件
$ ls -a
2. 按照文件/目录的类型,用不同的颜色和符号加以区分
$ la -FG
3. 显示当前目录下面的文件,包括详细信息
$ la -l
4. 显示当前目录下面的文件,按照创建时间的顺序来显示(即最新创建的最后显示)
$ la -ltr
5. 这是一些常用的alias
alias la='ls -a'
alias lf='ls -FG'
alias ll='ls -lh'
alias lll='ls -lh | less'
alias ltr='ls -ltrh'
ls -- list directory contents
SYNOPSIS
ls [-ABCFGHLOPRSTUW@abcdefghiklmnopqrstuwx1] [file ...]
DESCRIPTION
For each operand that names a file of a type other than directory,
ls displays its name as well as any requested, associated information.
For each operand that names a file of type directory,
ls displays the names of files contained within that directory,
as well as any requested, associated information.
EXAMPLE
1. 显示当前目录下面的所有文件,包括隐藏文件
$ ls -a
2. 按照文件/目录的类型,用不同的颜色和符号加以区分
$ la -FG
3. 显示当前目录下面的文件,包括详细信息
$ la -l
4. 显示当前目录下面的文件,按照创建时间的顺序来显示(即最新创建的最后显示)
$ la -ltr
5. 这是一些常用的alias
alias la='ls -a'
alias lf='ls -FG'
alias ll='ls -lh'
alias lll='ls -lh | less'
alias ltr='ls -ltrh'