Linux – Disk usage per user in Linux / Unix

disk-space-utilizationhard drivelinuxusage

I need to find out how much disk space is being occupied by each user on the network. I am aware of df and du commands: I could list the entire filesystem and AWK the output, but I wonder if there is a more standard command.

The output I am looking for is:

usr1  xMb
usr2  yMb
[...]
Total zMb

Any ideas?

Thanks!

PS. Red Hat Linux EE

Best Answer

Is this a one time thing, or is this information you want to be able to extract regularly? In case it is the later then one option is to apply quotas on your filesystem. Doing that the system continuously keeps track of the amount of data used by each user. That way the information is merely a query to the quota database away.

Related Topic