ali aboos

Linux: Find and delete files/directories recursively in Linux

by on Nov.08, 2008, under 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.


1 Trackback or Pingback for this entry

Leave a Reply

Time limit is exhausted. Please reload CAPTCHA.

Search InsaneLabs.com

Can't find what you're looking for? Drop a comment on a post or email (ali aht insanelabs doht com)

Links

Links open in a new window