TREE Commands Cheat Sheet

Here is a cli commands cheat sheet for TREE command, you can use this as a quick reminder for basic commands with a brief description for each of the commands.

What is TREE command?

Add some data here

        # To display a recursive directory tree:
tree

# To make tree output contents from :
tree 

# To make tree omit any empty directories from the output:
tree --prune

# To make tree list *all* files and directories, even hidden ones:
tree -a

# To list directories only (`-d`), and at a max depth of two levels (`-L`):
tree -d -L 2
    

Check out the TREE command documentation .


You can also check our MegaSh cheatsheet tool, that has 150+ searchable linux cheat sheets in one page, so you never forget a command as you work again

Check Also

Best AI tools list