相关疑难解决方法(0)

如何删除以双连字符开头的文件?

我的Unix机器上有一些文件开头

 --
Run Code Online (Sandbox Code Playgroud)

例如 --testings.html

如果我尝试删除它,我会收到以下错误:

cb0$ rm --testings.html
rm: illegal option -- -
usage: rm [-f | -i] [-dPRrvW] file ...
       unlink file
Run Code Online (Sandbox Code Playgroud)

我试过了

rm "--testings.html" || rm '--testings.html' 
Run Code Online (Sandbox Code Playgroud)

但没有任何作用.

如何在终端上删除这些文件?

unix bash filenames

66
推荐指数
4
解决办法
2万
查看次数

标签 统计

bash ×1

filenames ×1

unix ×1