Graphically representing directories and filesystems as a tree hierarchy makes them easier to visualize. This representation is used by monitoring scripts to present the filesystem in an easy-to-read format.
Printing the directory tree
Getting ready
The tree command prints graphical trees of files and directories. The tree command does not come with preinstalled Linux distributions. You must install it using the package manager.
How to do it...
The following is a sample Unix filesystem tree to show an example:
$ tree ~/unixfs unixfs/ |-- bin | |-- cat | `-- ls |-- etc | `-- passwd...