linux常用的ls命令,linux之ls常用命令详解

用法: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

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值