linux之ls常用命令详解
2016-08-15 11:28
351 查看
用法: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
不知道各位大神还有什么要补充的吗,谢谢大家
列出 文件 的信息(默认为当前目录)。
如果不指定-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
不知道各位大神还有什么要补充的吗,谢谢大家
相关文章推荐
- linux的ls命令详解(四)(几种常用的ls选项排序命令)
- Linux基本常用命令之ls详解(含date,cal)
- linux命令之ls命令及常用参数详解
- Linux常用命令[top ps grep ls chmod rm mkdir find awk]详解
- Linux常用ls, alias基础命令详解
- linux的ls命令详解(三)(几种常用的ls选项排序命令)
- Linux常用命令——ls命令选项详解
- Linux常用命令ls详解
- Linux备忘录:Linux常用命令+vi编辑器详解
- linux netstat 命令常用选项详解
- linux常用的简单命令(一) ls、pwd、cd、cat/more、grep
- 详解Linux命令行下常用SVN命令
- 详解Linux命令行下常用svn命令
- linux下常用命令参数详解 nc
- linux arp 命令常用参数详解
- linux下常用命令参数详解-free
- Linux常用的基本命令(Red Hat)详解
- linux下常用命令参数详解-nc
- linux系统下常用的基本命令 -- ls
- linux arp 命令常用参数详解