Linux: Find and delete files/directories recursively in Linux

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

Leave a Reply

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

Time limit is exhausted. Please reload CAPTCHA.