[TAG] [2 cents TIP] efficient use of "-exec" in find
Mulyadi Santosa
mulyadi.santosa at gmail.com
Mon Feb 1 05:27:01 MSK 2010
Hi Ben :)
On Mon, Feb 1, 2010 at 12:37 AM, Ben Okopnik <ben at linuxgazette.net> wrote:
> What would be wrong with just using 'du -sk ~'?
The above command would show the total size of current user's home
directory, while "find ~ -type f -exec du -k {} +" will show the size
of each file inside current user's home directory.
--
regards,
Mulyadi Santosa
Freelance Linux trainer and consultant
blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com
More information about the TAG
mailing list