Quantcast
Channel: Doyensys Allappsdba Blog..
Viewing all articles
Browse latest Browse all 1640

List directories inside sub directories

$
0
0

Many of us know how to list the files in Linux environment.  But if you are looking to list only the directories, this is the blog you are looking for.

The find command also allows you to limit search to a particular directory depth. One command line option that lets you do this is -maxdepth. Here '-maxdepth 5' forces 'find' to go inside and search only three levels, with the first level being your top level (or the current working) directory

Command:

find . -maxdepth 5 -type d


Viewing all articles
Browse latest Browse all 1640

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>