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 199 times
-1
ashim
- 967
- 1
- 7
- 10
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,006
- 6
- 56
- 58