how to calculate the file space usage of every account?
hi!
I got a problem. Our storage spool is full. Almost 500 IO node(s), Every IO node have about 10TB capacity of storage. My boss want me to get this information: Who used how many capacity of storage. So I need a software or script to help me, to calculate the file space usage of every account(user). like this: For I/O node number 1: user:tom,usage:1000MB user:lee,usage:3000MB Is there anyone can help? (forgive my poor English,please) |
well sounds like you should be using quota's in the first place, but if your accounts are all under /home/ then just run "du -h --max-depth=1 /home" and that will give you the size of each /home/user directory.
|
Thank you !
I will make a study on quota from now on! |
If your system actually uses quota, you can try the repquota command to retrieve information about the filesystem usage of each user.
|
Thank you everyone!
|
All times are GMT -5. The time now is 11:08 AM. |