Display a recursive tree of files and directories.
Section: Navigation and Discovery
Show directory tree
bash
bash
tree -a -L 2Explanation
Great for understanding project layout. Install `tree` first on minimal systems.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Navigation and Discovery