开源是一种精神,分享是一种美德!

ll

相关命令:ls

ll 等同于  ls -l --color=tty

ls加参数的一个别名



[root@localhost test]# alias ll
alias ll='ls -l --color=tty'


[root@localhost database]$ ll -h         #可显示文件大小
总用量 4.5M
-rw-r--r--. 1 webdev webdev 4.0M 5月  28 14:42 28toplearning.sql
-rw-r--r--. 1 webdev webdev 583K 5月  29 00:07 toplearning.tar.gz

  

# ll -t   #按时间倒序排序文件
# ll -t | tac  #按时间升序排序文件

 

# ll -t | more       #	根据时间倒排序,分页显示

   

[root@bigserver1 test]# ll -t   #正序
总用量 0
-rw-r--r-- 1 root root 0 1月  29 11:40 a.sh
-rw-r--r-- 1 root root 0 1月  29 11:35 bc
-rw-r--r-- 1 root root 0 1月  29 11:35 AA

[root@bigserver1 test]# ll -tr  #倒序
总用量 0
-rw-r--r-- 1 root root 0 1月  29 11:35 AA
-rw-r--r-- 1 root root 0 1月  29 11:35 bc
-rw-r--r-- 1 root root 0 1月  29 11:40 a.sh

评论(1)

    • 董小伟
      333
      [回复]

评论

名字:
验证码:
获取验证码
内容: