Indented Hierarchical Listing with Tree Command on Ubuntu 14.04

You can install Tree using apt-get or yum depending on your distribution. On Ubuntu 14.04 we’ll be using apt-get.


Once installed, use the command ‘tree’ followed by the directory path to view an indented hierarchical listing of your files. Piping the command into less will let you take a good look around.

Or, if you’d like to impress your friends, you could use the following for a similar output: