linux - How to find total size of all files under the ownership of a user? -


i'm trying find out total size of files owned given user.

i've tried this:

find $myfolder -user $myuser -type f -exec du -ch {} + 

but gives me error:

missing argument exec

and don't know how fix it. can can me this?

you need terminate -exec. if want totals each directory possibly -type d required.

find $myfolder -user $myuser -type d -exec du -ch {} \; 

Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -