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.

CC0 1.0 To the extent possible under law, the creator has waived all copyright and related or neighboring rights to this work.

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.

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