Find and remove specific files via the command line.

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

This will find all files (-type f) called .DS_Store and execute the rm (remove) command on that set {}.