On Linux get disk space used per user when you are not root

3.7k Views Asked by At

du --max-depth=1 will give the usage of the user you are logged in as. But we have a dev box shared by more than one team, so its getting tough to find the culprit.

If I am root I can do it but I am not the root user and dont want to ask the System Admins all the time to find the user with most usage.

Any ideas on this please.

1

There are 1 best solutions below

0
On BEST ANSWER

You can't determine the size of directories you have no read/execute permissions for, so this is only possible when being root.