tree 命令添加实例

This commit is contained in:
小弟调调™ 2017-03-30 22:35:28 +08:00 committed by GitHub
parent a4177153b0
commit 1ea87bf7e7
1 changed files with 9 additions and 0 deletions

View File

@ -91,4 +91,13 @@ tree /private/ -L 1
└── var
```
忽略文件夹
```bash
tree -I node_modules # 忽略当前目录文件夹node_modules
tree -P node_modules # 列出当前目录文件夹node_modules的目录结构
tree -P node_modules -L 2 # 显示目录node_modules两层的目录树结构
tree -L 2 > /home/www/tree.txt # 当前目录结果存到 tree.txt 文件中
```
<!-- Linux命令行搜索引擎https://jaywcjlove.github.io/linux-command/ -->