Chinaunix

标题: rm -rf * 会有多可怕? [打印本页]

作者: 零二年的夏天    时间: 2005-11-21 22:06
标题: rm -rf * 会有多可怕?
#cd /home/totoro/
debian:/home/totoro# ls
bin      Documents  MyDownloads                      tmp
Desktop  install    OOo-1.1rc3-zh_CN.firefly.tar.gz
debian:/home/totoro# echo *
bin Desktop Documents install MyDownloads OOo-1.1rc3-zh_CN.firefly.tar.gz tmp


照此来看,只要所在目录适合,rm -rf * 也还算可以接受哦。

---------------

以前一直以为shell会无穷扩展*。
作者: kelela    时间: 2005-11-21 22:09
经常 喜欢加 -f -rf参数,还好,没删错过~
作者: 零二年的夏天    时间: 2005-11-21 22:14
现在已经不使用-f参数了,Debian中没有alias过。
作者: bingosek    时间: 2005-11-22 09:12
没有rm -fr /可怕
作者: leaper    时间: 2005-11-22 09:14
反正没有砸了硬盘可怕
作者: calflyok    时间: 2005-11-22 09:56
echo 和 ls 有什么区别阿?
作者: aeonsun    时间: 2005-11-22 09:56
我就错删过,还好有备分,不然就可怕了
呵呵




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2