benmouse 发表于 2005-10-27 13:25:21

请教:如何删除文件:-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]

dukeduan 发表于 2005-10-27 14:34:24

D

我K,只发一个字母还发不了贴,加几句废话在这里。

ivyharry 发表于 2005-10-28 02:34:36

文件名是“-file-?”吗?

Kyd 发表于 2005-10-28 11:53:24

挺F2,选D

anana3121 发表于 2005-10-29 18:24:21

我看是e,第一个[-]代表文件名第一个字符是-,最后一个代表最后是-.

betatoy 发表于 2005-10-30 20:30:18

應該選E

zhy2111314 发表于 2005-10-31 10:21:09

--   Terminate option list.
好多命令都有这个选项,就是中止参数,答案就是D

积木 发表于 2005-10-31 10:58:17

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: 偶都不知道。

fke7985 发表于 2005-10-31 13:52:17

选择第D,通八达 rm -- -file-    --表示这是最后一个参数

zhy2111314 发表于 2005-11-1 10:37:34

最后那个shred是什么意思?

pakix 发表于 2005-11-1 10:45:18

overwrite the file before delete it
prevent recovering data
页: [1]
查看完整版本: 请教:如何删除文件:-file- ?感激不尽!