Re: what command to show number of folders



Stephane Chazelas wrote:
On Tue, 24 Jan 2006 15:45:02 +0000, Tony wrote:
Hi !

Can anyone tell me what command line syntax I would type to find out how many directories are in my system.

As a super user:

find /// -type d -print | grep -c ///

That is a unique solution, especially compared to:

	find / -type d -print | wc -l

Or, if you must use grep:

	find / -type d -print | grep -c .

  - Logan
.