I have file with name --help.tgz
. I want to delete but don't know how.
I tried rm "--help.tgz"
, rm \-\-help.tgz
and it did not work. How can I delete a file with such name?
Asked
Active
Viewed 212 times
-1

ashim
- 1,017
1 Answers
1
Try: rm -- --help.tgz
The --
tells rm
that there are no further flags to process and that everything else are the files/directories to be deleted. Most unix utilities use -- in a similar way.

jsbillings
- 24,406