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
  • 301
  • 1
  • 3
  • 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
  • 43,712
8

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
  • 109,787