Dealing With Weird Filenames in Linux.

August 01, 2006, 03:59 pm

This is really for my own benefit, as I've run into the problem of how to delete files with weird filenames several times over the past 10 years and I always forget.

If you want to delete a file named -.txt, type rm -- -.txt.

(Stupid bittorrent filenames with crappy characters in them.)