How to check which file usage disk space for user

feerdispzoo

Verified User
Joined
Jan 17, 2022
Messages
185
cd /home/user/domains/domian/public_html

I need to check in this path for user, which files / folders consume hight volumen disk

Can anyone help me which command I should run ?
 
You can see it in the filemanager, when you enable this option in it.
 
Can anyone help me which command I should run ?
Login via SSH and use this command:
du -h --max-depth=1 /home/username/ | sort -r -k1,1n
The sort takes care it's sorted form small to big. If you need more change the max depth to 3 or something.
But this way you can find out which directory has the same content. If you want to know what exactly, go to that directory and run the command again for example like:
du -h --max-depth=1 ./ | sort -r -k1,1n
mind the dot in front of the slash when running it like this from the directory you're in!!
 
Back
Top