[wellylug] Empty Directories
Ian Beardslee
itb at falcons.co.nz
Wed Apr 5 08:42:34 NZST 2006
-----Original Message-----
From: michael
To: Wellington Linux Users Group <wellylug at lists.wellylug.org.nz>
Date: Tue, 04 Apr 2006 16:16:11 +1200
Subject: Re: [wellylug] Empty Directories
> "Ian Beardslee" writes:
> >Hi geniuses ... and anyone else who may be able to answer ...
> >How can I go about finding all directories in a filesystem that are
> empty?
>
> find <filesystem> -type d -empty
>
> Will produce a list of all empty directories.
>
> find <filesystem> -type f -empty
>
> Will produce a list of all empty files.
Excellent, thanks for that, worked a treat. Of course I then had to work
out how to mount a windows share ... but that is another story :-)
More information about the wellylug
mailing list