Exit 发表于 2003-1-28 22:42:54

请教,关于rm命令.

一般来说,我在TEXT模式下输入:

rm *

之后.系统都会让我一个一个的确定是否删除.
这让我很头痛.如果有很多文件,不是要按很多次"y"了.
我记的要在rm命令后加一个-i,才会出现让我一个一个确定的模式..

是不是我有什么地方做错了?我用的是REDHART8.0

我想知道怎么样才能一次性的删除,而不出现让我确定的画面呢??

ajinn 发表于 2003-1-29 14:40:38

RH8就这样
我用rm -f也不行

Kuye 发表于 2003-1-29 14:49:42

这样 unalias rm,然后再删除。不过下次重新登陆还会让你确认删除。

那个 rm -i 建议最好还是平时留着,我有一次 rm -fr /usr....

liuspider 发表于 2003-1-29 17:49:29

把 /usr 删除了可是损失太大了吧 :)

我在我的 LFS 下面,发现 cp 的 -i 和 -f 也不能同时使用,不像我的 mandrake 9,看来 mandrake 9 给 fileutils 打的一大堆的补丁,还是很有用的啊

ekey11 发表于 2003-1-31 10:31:39

在.profile 中有RM的配置,
default is rm -i
but you can use "rm -f " to delete files and no confire

liuspider 发表于 2003-1-31 13:11:02

呵呵,这个方案倒是彻底,但是可以很危险的!

siyeclover 发表于 2003-2-2 18:26:47

不会吧,cloud在RH8.0里就是rm -f
没有问题啊,不用确认。

以上
siyeclover

raullpq 发表于 2003-2-9 19:28:34

rm绝对可以主要用.两个参数-f是强制删除,-r是删除目录.

Exit 发表于 2003-2-9 22:09:37

在.profile 中有RM的配置,
default is rm -i
but you can use "rm -f " to delete files and no confire

i can't find ".profile",also the file is ".bash.profile"
am i right?
页: [1]
查看完整版本: 请教,关于rm命令.