User space used
How can I get the amount of space used by a user on a particular file system or partition.
I know 'du -s /dir' gives the summary for '/dir' and 'du -s /home/user' gives the summary for user directory. But when I run the script as root, I may not be able to enter the directories which have permission 400. Is there any command or System Call or patch to do this. This is to be done without enabling quota. Thanks Grub |
try
Code:
dh -h |
what does dh stands for.
|
Requirement is to find the disk usage of the user(s) on the file system(s).
|
Type in : df
|
#Run from the directory in question and the largest chunk shows up last
find $1 -type d | xargs du -sm | sort -g |
sorry my stupid should be df -h not dh -h
|
All times are GMT -5. The time now is 03:08 AM. |