• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

How can I tell directory sizes in linux?

mcveigh

Diamond Member
I'm somehow using up my entire /home partition and am trying to find out what is using up so much space.

here is the output of "df -h"
Filesystem Size Used Avail Use% Mounted on
/dev/hda7 988M 177M 761M 19% /
/dev/hda5 23M 2.9M 18M 14% /boot
none 125M 0 124M 0% /dev/shm
/dev/hda8 1.7G 1.7G 10M 100% /home
/dev/hdd1 994M 661M 333M 67% /mnt/windows
/dev/hda9 3.9G 2.5G 1.4G 62% /usr

what command can I run in my /home directory to find what sizes are my various directories?
 
Thanks!! I knew it had to be simple.

now for the mystery I thought my evolution folder would be the space hog but its not

I have 3 /home directorys...............


wait I found it!!! it was a hidden compy of my old suse7.2 /home files I did it as root and hid the file( stupid me)

well ther'es my missing 1.5 gigs!

much love dnetmhz!

 
From any directory, you can do du | less and you'll get the size of each subdirectory.....du -s will skip the recursive output and just give you the total for the whole subtree.

As always, man du.

 
actually I never used "du" before (you learn something new everyday) so after
dnetmhz suggested it I of course did "du --help" and then used "du -sh" to find that friggin hidden directory.

 
Back
Top