How to Limit Depth of tree for Recursive File Listing

Tuesday Feb 23rd 2021 by LinuxShellTips

Use tree for recursive file listings to limit on the depth of file structure to be displayed.

Usually, the ls command is used in Linux to display files and folders. It is an inbuilt command in GNU/Linux. However, it has its shortcomings, for example, there is no option to view directories recursively.

a new command called ‘tree’ which is used for recursive file listing to limit on the depth of file structure to be displayed.

Complete Story

Mobile Site | Full Site