用法:ls [选项]... [文件]...

列出 文件 的信息(默认为当前目录)。

如果不指定-cftuvSUX 或--sort 选项,则根据字母大小排序。


长选项必须使用的参数对于短选项时也是必需使用的。

  -a, --all 显示.或者..的隐藏文件

  如:  

  #ls -a

.                a.out               love.txt

  



  -d, --directory 当遇到目录时列出目录本身而非目录内的文件


  

 

  -h, --human-readable 与-l 一起,以易于阅读的格式输出文件大小

(例如 1K 234M 2G)

 如:

# ls -lh

总用量 232K

-rw-r--r--. 1 root root  152 7月   9 00:51 10.c

-rw-r--r--. 1 root root   83 7月   9 00:55 11.c

-rw-r--r--. 1 root root  171 7月   9 01:00 12.c

-rw-r--r--. 1 root root  157 7月   9 01:16 13.c

-rw-r--r--. 1 root root  215 7月   9 01:25 14.c

-rw-r--r--. 1 root root  288 7月   9 01:36 15.c

-rw-r--r--. 1 root root  140 7月   9 03:09 16.c

-rw-r--r--. 1 root root  116 8月   9 15:29 17.c

-rw-r--r--. 1 root root  196 8月   9 15:45 18.c

-rw-r--r--. 1 root root  143 7月   8 22:46 1.c

-rw-r--r--. 1 root root  319 8月  15 10:54 1.txt

-rw-r--r--. 1 root root  143 7月   8 22:51 2.c

-rw-r--r--. 1 root root  148 7月   8 23:11 3.c

不知道各位大神还有什么要补充的吗,谢谢大家