Delete a file with a leading "dash" or (-) in Linux
To delete a file with a leading dash, for example,
# ls -al
total 36195068
drwxr-xr-x 3 toor toor 4096 2011-06-15 16:46 .
drwxrwxrwx 12 toor toor 4096 2011-06-21 14:11 ..
-rw-r--r-- 1 toor toor 6887 2011-06-10 13:01 -C
do
# unlink -- -C
Hope this helps
Comments