选项
-a:显示全部文件,包括隐藏文件
-A:显示除.和..以外的全部文件
-l:--long, 长格式列表,即显示文件的详细属性信息
-h, --human-readable:对文件大小单位换算;换算后结果可能会非精确值
-d:查看目录自身而非其内部的文件列表
-r: reverse, 逆序显示
-R:recursive,递归显示ide
[root@localhost etc]# ls abrt fprintd.conf man_db.conf [root@localhost etc]# ls -a . fonts makedumpfile.conf.sample rsyncd.conf .. fprintd.conf man_db.conf [root@localhost etc]# ls -l 总用量 1536 drwxr-xr-x. 3 root root 97 8月 7 01:51 abrt -rw-r--r--. 1 root root 16 8月 7 02:02 adjtime [root@localhost etc]# ls -lh 总用量 1.5M -rw-r--r--. 1 root root 1.5K 6月 7 2013 aliases -rw-r--r--. 1 root root 12K 8月 6 18:05 aliases.db drwxr-xr-x. 2 root root 49 8月 7 01:52 alsa drwxr-xr-x. 2 root root 4.0K 8月 7 01:58 alternatives [root@localhost ~]# ls -ld /etc/ drwxr-xr-x. 139 root root 8192 1月 15 14:02 /etc/