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

Winapi c++: DialogBox hangs when breaking a loop -

vb.net - Font adding using PDFsharp -

javascript - jQuery iScroll clickable list elements while retaining scroll? -