Linux User and partition size used by him
I am trying to get particular Users partition details in following format,
Partition path : /home/abc
Now on this partition wants partition usage as,
User - Total partion size Used by him - All partition occupied paths for files/folder
User1 - 1Gb - /home/abc/testA
User2 - 500Mb - /home/abc/testB
User3 - 144Kb - /home/abc/testC
I tried (find /home/abc/ -printf "%u %h %s\n") this works to some extent but it doesn't provide total calculated partition size and there is repetition of user name.
Can anyone help me in this to achieve this.
Appreciate any help.
Last edited by Pchinmay; 04-26-2012 at 08:18 AM.