https://rschu.me/list-a-directory-with-tree-command-on-mac-os-x-3b2d4c4a4827

Installation

$ sudo apt install tree

Usage Example

$ cd <<my directory to start in>>
$ tree
.
├── LICENSE
├── main.ts
├── README.md
└── routes
    ├── cars.ts
    └── routes.ts

1 directory, 5 files