码迷,mamicode.com
首页 > 系统相关 > 详细

Linux 命令[1]:ls

时间:2015-09-05 20:45:25      阅读:190      评论:0      收藏:0      [点我收藏+]

标签:

ls [选项] [目录名...]

[选项]

-a, --all列出目录中所有文件,包括以隐藏。

-l, --format=long, --format=verbose  显示详细信息

-d 查看目录属性

-h 显示人性化大小信息(只修饰文件大小)

-i 显示inode

[root@localhost ~]# ls -l
总用量 20
-rw-------. 1 root root 1097 1月 23 15:22 anaconda-ks.cfg
-rw-r--r--. 1 root root 9214 1月 23 15:22 install.log
-rw-r--r--. 1 root root 3091 1月 23 15:21 install.log.syslog

权限:-(文件类型 -文件 d目录 l软链接文件) rw-(u用户) -r-(g用户组) r--(o其他人)

r读 w写 x可执行

 1(引用数)  

root(所有者)

root(所属组)

1097(大小 单位:字节)

1月 23 15:22 (最后一次修改时间)

anaconda-ks.cfg (文件名)

 

ls -lh 可将大小显示的能看懂

[root@localhost ~]# ls -lh
总用量 20K
-rw-------. 1 root root 1.1K 1月  23 15:22 anaconda-ks.cfg
-rw-r--r--. 1 root root 9.0K 1月  23 15:22 install.log
-rw-r--r--. 1 root root 3.1K 1月  23 15:21 install.log.syslog

 

Linux 命令[1]:ls

标签:

原文地址:http://www.cnblogs.com/lazyx/p/4783734.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!