linux命令tree介绍(3)

Centos6.x版本最小化安装是没有安装tree命令的,需要通过yum -y install tree进行安装:

参数:文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/rebuilding/tree-command-description/

-L:level 显示层级别
-a:显示所有文件
-d:只显示目录文件
-f:显示文件相对目录
-i:不使用“缩进线”,仅仅以.显示相关路径,配合f使用
-l:当目录是软连接的时候,当做目录,显示目录文件
-I:排除相关文件
-p:显示文件权限,类似ls -l
-s:显示文件大小
-h:显示文件大小,以kb、mb、gb方式
-u:显示文件夹所有者
-g:显示文件组
-D:显示文件上次修改时间mtime
--inodes:文件inodes,参考ls -i
--device:显示当前文件夹inodes
-F:附加文件机构[*:代表可运行档; /:代表目录; =:代表 socket 文件; |:代表 FIFO 文件;] 参考ls -F
-r:按照字母倒叙排列
-t:按照时间排序,参考ls -t 文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/rebuilding/tree-command-description/

案例:

文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/rebuilding/tree-command-description/

其他参数:文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/rebuilding/tree-command-description/

--dirsfirst:先显示文件夹,然后才显示文件
-P:可以使用通配符
-n:不显示颜色
-C:显示颜色文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/rebuilding/tree-command-description/

文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/rebuilding/tree-command-description/文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/rebuilding/tree-command-description/

申明:除非注明Byrd's Blog内容均为原创,未经许可禁止转载!详情请阅读版权申明!

 
Byrd
  • by Published onDecember 12, 2017
  • 原文链接:https://note.t4x.org/rebuilding/tree-command-description/
匿名

Comment

Anonymous

Slide puzzle verification.