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

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -