Re: how can I use du,find,grep&wc -l to find the number of subdirectories & files(including hidden)?
- From: Tapio Salonsaari <take@xxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 27 Mar 2008 13:27:07 GMT
On 2008-03-27, George <> wrote:
du | grep ./ | wc -l to find the no. of subdirectories, how about find the
find -type d|wc -l
And also files?
find -type f|wc -l
See find manpage for all available options on -type and other
possibilities.
--
Take
.
- Prev by Date: Re: VNC always starts in Gnome rather than KDE
- Next by Date: Re: how can I use du,find,grep&wc -l to find the number of subdirectories & files(including hidden)?
- Previous by thread: how can i change my MAC address no linux machine
- Next by thread: Re: how can I use du,find,grep&wc -l to find the number of subdirectories & files(including hidden)?
- Index(es):