LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   redhat command to display the size of directory please! (https://www.linuxquestions.org/questions/linux-newbie-8/redhat-command-to-display-the-size-of-directory-please-171898/)

sandrinechen 04-18-2004 11:39 PM

redhat command to display the size of directory please!
 
Hi all,

So far, i always use "ll" or "ls" to list all the files+dirs under my current dir, but for dirs, the size are always "4096", which command can let me display also the exact size of the directory? So that i can know which dir is exhausting my disk space.
thanks in advance,

hypexr 04-19-2004 12:31 AM

This should do it:
du -h --max-depth=1

Kristijan 04-19-2004 12:31 AM

Try using ' ls -lh ' within the directory.

sandrinechen 04-19-2004 02:05 AM

hypexr & kristijan, thank you guys for the prompt replies.
the "du" command is obviously working, thank you very much.
good day,

Tinkster 04-19-2004 03:19 AM

Personally I also like xdiskusage a lot ...
(even though I usually use the du method ;})

http://xdiskusage.sourceforge.net/


Cheers,
Tink


All times are GMT -5. The time now is 07:27 AM.