How do I deal with a filename that starts with the hyphen (-) character?

You can refer to it either using ./-filename or some command will allow you to put it after double dash:

rm -- -filename

Leave a Comment