QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1189|回复: 10

请教:如何删除文件:-file- ?感激不尽!

[复制链接]
发表于 2005-10-27 13:25:21 | 显示全部楼层 |阅读模式
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]
发表于 2005-10-27 14:34:24 | 显示全部楼层
D

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

使用道具 举报

发表于 2005-10-28 02:34:36 | 显示全部楼层
文件名是“-file-?”吗?
回复

使用道具 举报

发表于 2005-10-28 11:53:24 | 显示全部楼层
挺F2,选D
回复

使用道具 举报

发表于 2005-10-29 18:24:21 | 显示全部楼层
我看是e,第一个[-]代表文件名第一个字符是-,最后一个代表最后是-.
回复

使用道具 举报

发表于 2005-10-30 20:30:18 | 显示全部楼层
應該選E
回复

使用道具 举报

发表于 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

       Note  that  if  you  use 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 的标准答案。 偶都不知道。
回复

使用道具 举报

发表于 2005-10-31 13:52:17 | 显示全部楼层
选择第D,通八达 rm -- -file-    --表示这是最后一个参数
回复

使用道具 举报

发表于 2005-11-1 10:37:34 | 显示全部楼层
最后那个shred是什么意思?
回复

使用道具 举报

发表于 2005-11-1 10:45:18 | 显示全部楼层
overwrite the file before delete it
prevent recovering data
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-7-3 10:31 , Processed in 0.128335 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表