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


相关文章:

  • 2022-12-23
  • 2021-07-26
  • 2021-07-12
  • 2022-01-19
  • 2021-08-07
  • 2021-06-20
  • 2021-12-15
猜你喜欢
  • 2021-12-03
  • 2021-11-06
  • 2022-02-11
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案