Celeb Glow
updates | March 26, 2026

Is there any command line to show tree view directory? [duplicate]

Many tutorials depict tree-view directory to show how they organize their files. Is there any command line to show such view?

Is ls capable to do this?

0

2 Answers

Tree is the command that will show you the tree view.

sudo apt-get install tree

then just type tree from the terminal. And tree -d will list only the directories and no files.

You can use the tree command. Just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo apt-get install tree

enter image description here