Created
May 3, 2012 18:07
-
-
Save ev3rywh3re/2587742 to your computer and use it in GitHub Desktop.
Linux: find command notes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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