tree

Display a visual directory tree structure

tree draws the directory structure as an indented tree. tree -L 2 limits depth to 2 levels. Not installed by default. Run apt install tree if missing.

Example

$ tree -L 2 /etc/nginx
/etc/nginx
├── nginx.conf
└── sites-available
    └── default
Tip: Type it yourself in the terminal below - reading is not the same as doing.