alias ll='ls -l --color=auto'
-l:长格式
[rhel@localhost ~]$ ll
total 32
drwxr-xr-x. 4 rhel rhel 4096 Jun 25 2015 Desktop
drwxr-xr-x. 2 rhel rhel 4096 Jun 21 2015 Documents
drwxr-xr-x. 2 rhel rhel 4096 Jun 21 2015 Downloads
drwxr-xr-x. 2 rhel rhel 4096 Jun 21 2015 Music
drwxr-xr-x. 2 rhel rhel 4096 Jun 21 2015 Pictures
drwxr-xr-x. 2 rhel rhel 4096 Jun 21 2015 Public
drwxr-xr-x. 2 rhel rhel 4096 Jun 21 2015 Templates
drwxr-xr-x. 2 rhel rhel 4096 Jun 21 2015 Videos
文件类型(1位)
-:普通文件 (f)
d: 目录文件
b: 块设备文件 (block)
c: 字符设备文件 (character)
l: 符号链接文件(symbolic link file)
p: 命令管道文件(pipe)
s: 套接字文件(socket)
文件权限(9位)
rwx(读、写、执行)
文件硬链接的次数(1位)
文件的属主(owner)
文件的属组(group)
文件大小(size),单位是字节
时间戳(timestamp):最近一次被修改的时间
访问:access
修改:modify,文件内容发生了改变
改变:change,metadata,元数据
-h:做单位转换
[rhel@localhost ~]$ ll -h
total 32K
drwxr-xr-x. 4 rhel rhel 4.0K Jun 25 2015 Desktop
-a:显示以.开头的隐藏文件
. 表示当前目录
.. 表示父目录
[rhel@localhost ~]$ ll -a
total 236
drwx------. 30 rhel rhel 4096 Nov 19 18:17 .
drwxr-xr-x. 3 root root 4096 Jun 21 2015 ..
-rw-------. 1 rhel rhel 53598 Jun 23 2015 .bash_history
-rw-r--r--. 1 rhel rhel 18 Sep 26 2014 .bash_logout
-rw-r--r--. 1 rhel rhel 176 Sep 26 2014 .bash_profile
-rw-r--r--. 1 rhel rhel 124 Sep 26 2014 .bashrc
drwxr-xr-x. 5 rhel rhel 4096 Jun 23 2015 .cache
drwxr-xr-x. 5 rhel rhel 4096 Jun 21 2015 .config
-i:index node, inode
[rhel@localhost ~]$ ll -i
total 32
14490 drwxr-xr-x. 4 rhel rhel 4096 Jun 25 2015 Desktop
14494 drwxr-xr-x. 2 rhel rhel 4096 Jun 21 2015 Documents
14491 drwxr-xr-x. 2 rhel rhel 4096 Jun 21 2015 Downloads
14495 drwxr-xr-x. 2 rhel rhel 4096 Jun 21 2015 Music
14496 drwxr-xr-x. 2 rhel rhel 4096 Jun 21 2015 Pictures
14493 drwxr-xr-x. 2 rhel rhel 4096 Jun 21 2015 Public
14492 drwxr-xr-x. 2 rhel rhel 4096 Jun 21 2015 Templates
14497 drwxr-xr-x. 2 rhel rhel 4096 Jun 21 2015 Videos
-r: 逆序显示
[rhel@localhost ~]$ ll -r
total 32
drwxr-xr-x. 2 rhel rhel 4096 Jun 21 2015 Videos
drwxr-xr-x. 2 rhel rhel 4096 Jun 21 2015 Templates
drwxr-xr-x. 2 rhel rhel 4096 Jun 21 2015 Public
drwxr-xr-x. 2 rhel rhel 4096 Jun 21 2015 Pictures
drwxr-xr-x. 2 rhel rhel 4096 Jun 21 2015 Music
drwxr-xr-x. 2 rhel rhel 4096 Jun 21 2015 Downloads
drwxr-xr-x. 2 rhel rhel 4096 Jun 21 2015 Documents
drwxr-xr-x. 4 rhel rhel 4096 Jun 25 2015 Desktop
-R: 递归(recursive)显示
[rhel@localhost ~]$ ll -R
.:
total 32
drwxr-xr-x. 4 rhel rhel 4096 Jun 25 2015 Desktop
drwxr-xr-x. 2 rhel rhel 4096 Jun 21 2015 Documents
drwxr-xr-x. 2 rhel rhel 4096 Jun 21 2015 Downloads
drwxr-xr-x. 2 rhel rhel 4096 Jun 21 2015 Music
drwxr-xr-x. 2 rhel rhel 4096 Jun 21 2015 Pictures
drwxr-xr-x. 2 rhel rhel 4096 Jun 21 2015 Public
drwxr-xr-x. 2 rhel rhel 4096 Jun 21 2015 Templates
drwxr-xr-x. 2 rhel rhel 4096 Jun 21 2015 Videos
./Desktop:
total 244
-rw-rw-r--. 1 rhel rhel 951 Jun 23 2015 a~
-rw-r--r--. 1 rhel rhel 640 Jun 23 2015 new.sh~
-rw-r--r--. 1 rhel rhel 895 Jun 23 2015 new.txt~
-rwxr-xr-x. 1 rhel rhel 672 Jun 23 2015 sh13.sh
-rwxr-xr-x. 1 rhel rhel 909 Jun 25 2015 sh19.sh
-rw-r--r--. 1 root root 452 Jun 23 2015 sh1.sh
-rw-rw-r--. 1 rhel rhel 312 Jun 23 2015 sh25.sh
-rw-rw-r--. 1 rhel rhel 300 Jun 23 2015 sh25.sh~
-rw-r--r--. 1 rhel rhel 669 Jun 23 2015 sh2.sh
-rw-r--r--. 1 root root 389 Jun 24 2015 sh30.sh
-rw-r--r--. 1 rhel rhel 493 Jun 23 2015 sh3.sh
-rwxr-xr-x. 1 rhel rhel 196 Jun 25 2015 sh46bak.sh
-rw-r--r--. 1 root root 196 Jun 25 2015 sh46.sh
-rw-r--r--. 1 rhel rhel 197 Jun 25 2015 sh46.sh~
drwxrwxr-x. 2 rhel rhel 4096 Jun 21 2015 untitled folder
drwx------. 9 rhel rhel 4096 Jun 23 2015 报表
-rwxr-xr-x. 1 rhel rhel 1404 Jun 26 2015 新建文本文档.txt
-rw-r--r--. 1 rhel rhel 894 Jun 25 2015 新建文本文档.txt~
-rwxr-xr-x. 1 rhel rhel 174080 Jun 26 2015 检查项-linux.xls
./Desktop/untitled folder:
total 0