5

Locate and delete all temporary files in user directory

view full story
linux-howto

http://unix.stackexchange.com – I use vim a lot, and my area has power failure a lot. So the resultant is I get many *.swp files scattered over my PC. I want an alias of rm command that removes all files with either .swp, ~, .netrwhist, .log or .bak extensions system wide (or atleast in my home directory). The command should delete the files system wide/home directory even when I am on ~/Desktop. How can I implement so? (HowTos)