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
  • 1
  • 2
  • 6

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
  • 39,774
  • 7
  • 116
  • 176
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
  • 106,657
  • 24
  • 210
  • 268