Solved Special file name

I created a file named "-R" (without quotes) by accident . I can't figure out how to rename or delete it, the file name was always interpreted as command argument. Please help, thanks!
 
This should also work: rm -- '-R'

The -- stops the processing of options causing -R to be taken literally instead of being treated as an option.
 
Back
Top