shell - size of every www folder in users' home -



shell - size of every www folder in users' home -

i need create shell script size of every www directory of users home folder

i need somethings username - wwwdirsize username - wwwdirsize total www size = ...

i know have play du unix command

any help?

to recursive size of folder: du -hs | cutting -f 1

so size of each user's www folder:

ls /home | while read username; echo "$username $(du -hs "/home/$username/public_html" | cutting -f 1)"; done

shell size du

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -