标签:
今天看了篇文章,说rm -rf / 是不能直接执行的,我怀着忐忑的心情,测试了一下: [root@rac1 ~]# rm -rf / rm: it is dangerous to operate recursively on `/' rm: use --no-preserve-root to override this failsafe [root@rac1 ~]# unset $foo [root@rac1 ~]# unset $bar [root@rac1 ~]# rm -rf $foo/$bar rm: it is dangerous to operate recursively on `/' rm: use --no-preserve-root to override this failsafe 竟然是真的!那么。。。 rm -rf * :成功了!删没了!在~路径下 cd / rm -rf * :一大堆的操作不允许之后 [root@rac1 /]# ll -bash: /bin/ls: No such file or directory [root@rac1 /]# !! 看来,我可以练习双节点RAC其中一个节点主机被偷走的场景了!!!
标签:
原文地址:http://blog.csdn.net/ghostliming/article/details/51205906