Linux: Find and delete files/directories recursively in Linux


Warning: Use of undefined constant user_level - assumed 'user_level' (this will throw an Error in a future version of PHP) in /homepages/3/d98111892/htdocs/insanelabs/htdocs/wp-content/plugins/ultimate-google-analytics/ultimate_ga.php on line 524

To have the OS find and delete files and directories recursively in Linux try the following command:
find <path> -name <filename> -exec rm -rf {} ;

Example:
find /vmware -name *.log -exec rm -rf {} ;

To find and replace strings within files look here.

One thought on “Linux: Find and delete files/directories recursively in Linux

  1. Pingback:
    Warning: Use of undefined constant user_level - assumed 'user_level' (this will throw an Error in a future version of PHP) in /homepages/3/d98111892/htdocs/insanelabs/htdocs/wp-content/plugins/ultimate-google-analytics/ultimate_ga.php on line 524
    Linux: find a string recursively within files | Ali Aboosaidi

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.

This site uses Akismet to reduce spam. Learn how your comment data is processed.