bug-fileutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bugs in "ls"


From: Bob Proulx
Subject: Re: Bugs in "ls"
Date: Tue, 6 Nov 2001 13:25:34 -0700

> The program "ls" for checking file information
> does not show correct block size of directories.
> 
> I have "ls" version 4.0.36 installed with RedHat
> Linux 7.1. When I use "ls -khl" to check block
> size of dirctories in my account, it showed every
> directory having the same size as 4.0k. Actually,
> some directories have much bigger block size.

The ls command is reporting the size of the directory file and NOT the
amount of disk space used withing a directory hierarchy.  4096 sounds
typical for basic directory sizes.  That is a basic chunk size and a
variable number of files may be listed there.

Try the following command to get disk usage information:

  du -sh *

Bob



reply via email to

[Prev in Thread] Current Thread [Next in Thread]