ls 命令用法
2013-12-30 17:19
253 查看
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'
相关文章推荐
- ls 命令的用法
- linux系统中ls命令的用法详解
- Linux常用命令--ls、cd、date用法
- 系统目录结构、文件类型及命令ls\alias的用法2.1-2.5
- linux ls命令参数及用法详解---linux显示目录内容命令
- Linux系统中ls命令用法详解
- Linux系统中ls命令用法详解 分类: ubuntu 2013-06-20 14:29 261人阅读 评论(0) 收藏
- ls – List命令_Linux ls – List 命令用法详解:
- Linux系统中ls命令用法详解
- ls ,tree,用法简单命令;alias别名用法(临时设置和永久设置)
- ls 命令中支持*的用法
- Linux 命令 “ls ” 的用法
- ls 命令的用法
- linux系统中ls命令用法详解
- Linux基础(二)--基础的命令ls和date的详细用法
- dircolors命令_Linux dircolors 命令用法详解:置ls命令在显示目录或文件时所用的色彩
- Linux ls命令最详细用法介绍
- Linux 命令“ls ” 的用法