Filesystem oddity

Dan Track dan.track at gmail.com
Wed Jan 18 11:13:08 UTC 2006


Hi

I just came across this odd thing.

Basically my problem was to find all empty directories on the /tmp
filesystem.  Initially I thought that all empty directories would be
8.0Kwhen running "du -hs". With this impression I ran my script. The
results I
got were inconsistent with my theory. It found many directories with one
file in them and these directories were also 8.0K in size.

I'd liek to ask how this is possible, is this something to do with blocks on
the filesystem. And how does the command: find /tmp -type d -empty, what
parameter does it use to find an empty directory?

Thanks in advance
Dan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20060118/73445272/attachment-0001.htm>


More information about the fedora-list mailing list