【工具推荐】tree——用命令行查看文件目录

个人介绍

使用一行命令就能查看文件目录结构,不用使用文件管理器一个文件夹一个文件夹打开查看了!

(torch) (base) whitewatercn@MadBookAir chest_xray % \tree -L 2\
> 
.
├── test
│   ├── NORMAL
│   └── PNEUMONIA
└── train
    ├── NORMAL
    └── PNEUMONIA

7 directories, 0 files

官网

https://oldmanprogrammer.net/source.php?dir=projects/tree

安装

homebrew tree — Homebrew Formulae
Ubuntu apt - How to install "tree" with command-line? - Ask Ubuntu

使用