请教,关于rm命令.
一般来说,我在TEXT模式下输入:rm *
之后.系统都会让我一个一个的确定是否删除.
这让我很头痛.如果有很多文件,不是要按很多次"y"了.
我记的要在rm命令后加一个-i,才会出现让我一个一个确定的模式..
是不是我有什么地方做错了?我用的是REDHART8.0
我想知道怎么样才能一次性的删除,而不出现让我确定的画面呢?? RH8就这样
我用rm -f也不行 这样 unalias rm,然后再删除。不过下次重新登陆还会让你确认删除。
那个 rm -i 建议最好还是平时留着,我有一次 rm -fr /usr.... 把 /usr 删除了可是损失太大了吧 :)
我在我的 LFS 下面,发现 cp 的 -i 和 -f 也不能同时使用,不像我的 mandrake 9,看来 mandrake 9 给 fileutils 打的一大堆的补丁,还是很有用的啊 在.profile 中有RM的配置,
default is rm -i
but you can use "rm -f " to delete files and no confire 呵呵,这个方案倒是彻底,但是可以很危险的! 不会吧,cloud在RH8.0里就是rm -f
没有问题啊,不用确认。
以上
siyeclover rm绝对可以主要用.两个参数-f是强制删除,-r是删除目录. 在.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]