17

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 2

24

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.

7

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

Not the answer you're looking for? Browse other questions tagged .