man rm一下呗: To remove a file whose name starts with a '-', for example '-foo', use one of these commands: rm -- -foo rm ./-foo 执行: ➜ test ll total 4.0K -rw-rw-r--. 1 bob bob 1 Aug 9 09:49 --filename ➜ test man rm ➜ test rm -- --filename ➜ test ll total 0 ➜ test
man rm
一下呗:执行: