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?

betauli
  • 191

2 Answers2

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.

Terrance
  • 41,612
  • 7
  • 124
  • 183
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

Mitch
  • 107,631