Link to home
Start Free TrialLog in
Avatar of Pryach
Pryach

asked on

Disk Space Useage

My hard drive is getting full and I'm not entirely sure where all the data is going.

I'm trying to find a way to get the size of every directory.  I don't want to know what the size of each indiviual file is (since there are hundreds of thousands of them, 500GB hard drive).

Basically I'd like a way of knowing how much is in the /home directory.

If there are 3 users in the home directory, the size of each of those subfolders.  And basically go down the tree so I can figure out where all the space is going.

Again, I am not concerned with the individual files, just the directories and subdirectories.

This is a Linux Redhat 9, no GUI, and I would prefer to be able to do this without adding any new programs (my hard drive is getting full as it is ;) )
Avatar of kenfcamp
kenfcamp
Flag of United States of America image

try man du

example: du -hs /home/*

Ken
Avatar of Pryach
Pryach

ASKER

That only gives me the immediate directories in /home, I need it to print also the subdirectories of all the directories in /home.
ASKER CERTIFIED SOLUTION
Avatar of ssvl
ssvl
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial