tree:list contents of directories in a tree-like format

显示文件或目录树内容

常用选项:

-d 只显示目录


-f 显示完整路径名

-L n 显示目录的深度,n为数字

<pre class="brush:bash;toolbar:false">[root@www1 ~]# tree -Ldf 2  /
/
├── /bin
├── /boot
│   ├── /boot/efi
│   ├── /boot/grub
│   └── /boot/lost+found
├── /dev
│   ├── /dev/block
│   ├── /dev/bsg

标签: none

相关文章推荐

添加新评论,含*的栏目为必填