LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   how to calculate the file space usage of every account? (https://www.linuxquestions.org/questions/linux-software-2/how-to-calculate-the-file-space-usage-of-every-account-695032/)

uunuu 01-05-2009 01:43 AM

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)

acid_kewpie 01-05-2009 04:11 AM

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.

uunuu 01-06-2009 08:52 PM

Thank you !
I will make a study on quota from now on!

colucix 01-07-2009 02:15 AM

If your system actually uses quota, you can try the repquota command to retrieve information about the filesystem usage of each user.

uunuu 09-19-2009 12:51 AM

Thank you everyone!


All times are GMT -5. The time now is 11:08 AM.