Portal Home > Knowledgebase > Articles Database > Need to del .php files in dir and subdir
Need to del .php files in dir and subdir
Posted by rathin, 10-03-2008, 10:04 AM |
Need to del all .php files in dir and subdir,can one give me the command to do this
|
Posted by Patrick, 10-03-2008, 10:21 AM |
Try:
find /home/user/public_html/directory -type f -name "*.php" -exec rm {} \;
Make sure you change the directory location above to the correct path or bad things might happen...
|
Posted by rathin, 10-03-2008, 01:07 PM |
thanks lot it worked
|
Add to Favourites Print this Article
Also Read