Find and remove specific files via the command line.

For example, on a Mac, you’ll often find files. To find and remove these you can run the following command to search for and remove every instance:

$ find . -type f -name ".DS_Store" -exec rm {} ;

This will find all files () called and execute the (remove) command on that set .