ll & ls 文件列表显示

ls -l 等同于ll

默认显示
[root@localhost ~]# ll
总用量 112
-rw-r--r--  1 root root      4 11月  3 15:18 1.txt
-rw-r--r--  1 root root      4 11月  3 15:19 2.txt
-rw-r--r--  1 root root      8 11月  3 15:20 3.txt
-rw-------. 1 root root   1399 10月 24 14:33 anaconda-ks.cfg
-rw-r--r--. 1 root root  34763 10月 17 11:27 install.sh
-rw-r--r--. 1 root root   3423 10月 30 17:01 OneShellScript.sh
-rw-r--r--  1 wj   wheel 53551 2月  16 2022 package.xml

#按照时间排序 最新的在最前
[root@localhost ~]# ll -t
总用量 112
-rw-r--r--  1 root root      8 11月  3 15:20 3.txt
-rw-r--r--  1 root root      4 11月  3 15:19 2.txt
-rw-r--r--  1 root root      4 11月  3 15:18 1.txt
-rw-r--r--. 1 root root   3423 10月 30 17:01 OneShellScript.sh
-rw-------. 1 root root   1399 10月 24 14:33 anaconda-ks.cfg
-rw-r--r--. 1 root root  34763 10月 17 11:27 install.sh
-rw-r--r--  1 wj   wheel 53551 2月  16 2022 package.xml

#按照时间排序,最旧的在前面  等同于ll -tr
[root@localhost ~]# ll -t | tac
-rw-r--r--  1 wj   wheel 53551 2月  16 2022 package.xml
-rw-r--r--. 1 root root  34763 10月 17 11:27 install.sh
-rw-------. 1 root root   1399 10月 24 14:33 anaconda-ks.cfg
-rw-r--r--. 1 root root   3423 10月 30 17:01 OneShellScript.sh
-rw-r--r--  1 root root      4 11月  3 15:18 1.txt
-rw-r--r--  1 root root      4 11月  3 15:19 2.txt
-rw-r--r--  1 root root      8 11月  3 15:20 3.txt


© 版权声明
THE END
喜欢就支持一下吧
点赞12 分享
评论 抢沙发
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

取消
昵称表情代码图片快捷回复

    暂无评论内容