tree

Updated: 17 February 2025

List contents of directories in a tree-like format.

Install

sudo apt install tree

Ignore .git folder but show other dot folders / files, starting from current directory

tree -I .git -a .

Also show user, group and file permission

tree -ugp dir

Create tree 2 levels deep only

tree -L 2 .

Leave a comment