Favorite find Commands

Bangkok, Thailand, 2007-11-14 18:16 +0700

#infrastructure

I’m always ducking into the man page for find - the syntax never seems to stick for me, so this my online MRU list of find commands:

# Recursive chmod on directories only
find . -type d -exec chmod 750 {} \;

# Recursive chmod on files only
find . -type f -exec chmod 640 {} \;