find /path/to/base/dir -name \*.htaccess -exec rm {} \;
I used this command to remove .htaccess files that a spider virus placed throughout my web server. If I didn't use this method the only other way would be to individually go through each folder and delete file that was causing all my hosted websites to redirect to a rogue website.... and that wasn't possible because I host hundreds of websites, each with hundreds of recursive folders.















































0 comments:
Post a Comment