[Tool Recommendation] tree - View File Directory Using Command Line

Personal Introduction

View the file directory structure with a single command, no need to open folders one by one using a file manager!
For example:

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

7 directories, 0 files

Official Website

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

Installation

homebrew https://formulae.brew.sh/formula/tree
Ubuntu https://askubuntu.com/questions/572093/how-to-install-tree-with-command-line

Usage

https://www.runoob.com/linux/linux-comm-tree.html