How can I count the number of folders in a drive using linux?

Posted by Dean on Super User See other posts from Super User or by Dean
Published on 2010-04-09T05:55:07Z Indexed on 2010/04/09 6:03 UTC
Read the original article Hit count: 259

Filed under:
|
|

I need to organise an external HDD such that there is no more than 500 folders on it.

Ubuntu's "Properties" pane shows only the file count, not the folder count.

Is there a simple CLI line that will tell me the number of subdirectories?

Thanks!

© Super User or respective owner

Related posts about linux

Related posts about cli