如图所示,这种文件如何删除.
我也是首次遇到这个问题. 而我的方法是man rm
, 然后看到了下面这写内容:
To remove a file whose name starts with a '-', for example '-foo', use one of these com‐
mands:
rm -- -foo
rm ./-foo
Note that if you use rm to remove a file, it might be possible to recover some of its con‐
tents, given sufficient expertise and/or time. For greater assurance that the contents
are truly unrecoverable, consider using shred.
希望对您有用.
PS: 学习获取知识的方法比学知识要重要.
7 回答5.3k 阅读
4 回答4k 阅读
2 回答5.9k 阅读✓ 已解决
2 回答2.5k 阅读✓ 已解决
1 回答2.3k 阅读✓ 已解决
2 回答794 阅读✓ 已解决
2 回答3.2k 阅读
使用
rm -fr -- 文件名