0
In this tip we will have a look at a nice command line tool called "tree". This command allows us from the terminal to list all contents (files and folders) of a folder in the form of a tree navigation. This will be useful for those who use frequently the terminal and want to find what they need quickly and easily.



To install the tree command line utility on Ubuntu, run this command from the terminal:

sudo apt-get install tree

Then run this command to list files and folders of the current folder:

tree

To list a specific folder, then use this command:

tree folder_path

Replace folder_path with the folder path you want to list its files and folders in the form of a tree. For more help about this utility, run this command from the terminal:

man tree

That's it!

Post a Comment

 
Top