请教:如何删除文件:-file- ?感激不尽!
What command can be used to remove the file: -file-?A. rm -file-
B. rm "file"
C. rm -"file"-
D. rm -- -file-
E. rm [-]file[-]
以上为LPI认证题,谁予解答,感激不尽!
有想参加LPI考试的Friends,跟我联系,一起交流,我有一些资料试题
QQ:3427813
Email:[email protected] D
我K,只发一个字母还发不了贴,加几句废话在这里。 文件名是“-file-?”吗? 挺F2,选D 我看是e,第一个[-]代表文件名第一个字符是-,最后一个代表最后是-. 應該選E -- Terminate option list.
好多命令都有这个选项,就是中止参数,答案就是D To remove a file whose name starts with a `-', for example `-foo',use
one of these commands:
rm -- -foo
rm ./-foo
Notethatifyouuse rm to remove a file, it is usually possible to
recover the contents of that file.If you want more assurance that the
contents are truly unrecoverable, consider using shred.
这是man page 的标准答案。 :oops: 偶都不知道。 选择第D,通八达 rm -- -file- --表示这是最后一个参数 最后那个shred是什么意思? overwrite the file before delete it
prevent recovering data
页:
[1]