Skip to content

Instantly share code, notes, and snippets.

@ev3rywh3re
Created May 3, 2012 18:07
Show Gist options
  • Save ev3rywh3re/2587742 to your computer and use it in GitHub Desktop.
Save ev3rywh3re/2587742 to your computer and use it in GitHub Desktop.
Linux: find command notes
## find hidden directories
find . -name '.*' -type d -print
## Change permissions recursively using FIND:
find /var/www/html/ -print -exec chmod <permissions> {} \;
find /var/www/html/ -print -exec chown <owner.group> {} \;
## For seLinux you should know wtf chcon does and modify appropriately.
find /var/www/html/ -print -exec chcon -u system_u {} \;
## Kill a bunch of SVN (or other crap you want to destroy) directories in one shot. Remember, with great power... blah blah, but your not Spiderman.
find /where-you-want-to-kill-folders/*/.svn -print -exec rm -Rf {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment