Thursday, December 8, 2011

Mac: Find & Delete Specific File Type From The Terminal

Sometimes I'd like to find and delete temporary files, backup files, or any file type. This example will show you how to find and delete the LOG file from the terminal:


sudo find / -iname *.log -print0 | xargs -0 rm -frv {}


You will be prompted for your admin password.

No comments: