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

objective c - Can't build GCM with Protobuf in Xcode -

ember.js - EmberJS Model find not up-to-date with underlying store -

embed HTML within ASP.net -