rm cannot delete files starting with “--” [duplicate]
问题 This question already has answers here : How to remove files starting with double hyphen? (7 answers) Closed 5 years ago . I have a script that creates files, and sometimes they end up having two dashes at the beginning. Is there any way to delete them? mv doesn't work either. Here is the error I am getting: $ ls --1355509766.jpg $ rm --1355509766.jpg rm: illegal option -- - usage: rm [-f | -i] [-dPRrvW] file ... unlink file $ rm "--1355509766.jpg" rm: illegal option -- - usage: rm [-f | -i]