find

find

Another very powerful command is ‘find’. For me the most common application of it is to use it to delete a set of files in subfolders. The syntax for it is a one liner

find . -name "patternToSearch" -exec rm -rf {} \;

 

Leave a Reply

%d bloggers like this: