[wellylug] Empty Directories

Richard Hector richard at walnut.gen.nz
Tue Apr 4 16:14:28 NZST 2006


On Tue, 2006-04-04 at 16:04 +1200, Ian Beardslee wrote:
> 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?

How well does

find / -type d -links 2

work?

There's one link from the . entry, and one from the parent, and none
from subdirectories. I'm not sure how it will handle more interesting
links.

Richard





More information about the wellylug mailing list