How to delete a file whose name begins with "-"

subject: Commands · date: 2017-12-09

Use -- to make rm stop parsing command line options:

$ rm -- -filename

read more

share this article