Locating the Directory with the Most Space Usage

Sharif

Verified User
Joined
May 21, 2021
Messages
28
Can you tell me where to find the directory that takes up the most space on DirectAdmin?

Also, is there a way to see which directory is using the most space so I can identify the location with the highest storage usage?
 
I use this one via SSH to have output in MB and GB which makes live easier.
du -h --max-depth=1 /path | sort -r -k1,1n

So for the biggest homedir:
du -h --max-depth=1 /home | sort -r -k1,1n
Change max-depth (and if needed other things) to your own need.
So with /home/user you can find the biggest dir in a specific user account for example. And so on.
 
Back
Top