Re: du Bug?

Gus Michel <[email protected]> Sat, 28 Jan 2006 05:00:29 +0000 (UTC)
Newsgroups gmane.comp.gnu.core-utils.bugs,gmane.comp.gnu.fileutils.bugs
Message-ID <[email protected]>
ice <iceblue22es <at> yahoo.es> writes:

> 
> 
> Hi,
> 
> I have a cuestion. Why en HPUX system when you type a du over an
> empty directory you receive a zero size directory and when you do
> over a Linux system you receive 4 kB for each directory.
> 
> If you test it over a directory with many subdirectory you may be
> wrong.
> 

I don't know about HP-UX, but on most versions of *NIX, du means
Disk Usage, and directories (even empty ones) use disk space.
In the case of ext2fs, the amount of disk space allocated for a
directory is one file system block, which is typically 4kb.