05 tree命令

tree命令

tree -L level

# tree -L level:限制目录显示层级,L必须大写
qwe@ubuntu:~$ ls
a.txt               Downloads         Public
caliper-benchmarks  examples.desktop  Templates
Desktop             Music             Videos
Documents           Pictures

# 如果直接tree,那么将会把所有的文件都显示出来
qwe@ubuntu:~$ tree -L 2
.
├── a.txt
├── caliper-benchmarks
│   ├── benchmarks
│   ├── caliper.log
│   ├── CODEOWNERS
│   ├── LICENSE
│   ├── networks
│   ├── node_modules
│   ├── package.json
│   ├── package-lock.json
│   ├── README.md
│   ├── SECURITY.md
│   └── src
├── Desktop
│   ├── google-chrome-stable_current_amd64.deb
│   ├── qscodek.png
│   └── Qv2ray.v2.6.3.linux-x64.AppImage
├── Documents
├── Downloads
├── examples.desktop
├── Music
├── Pictures
├── Public
├── Templates
└── Videos

13 directories, 12 files


posted @ 2020-11-02 13:02  TR_Goldfish  阅读(120)  评论(0编辑  收藏  举报