Settings | Sign in | Sign up

The author has 2 posts.

【转载】最悲催的事情,是不是rm -rf /xxx 结果手快敲成了 rm -rf / xxx?

Floor 1 巨大八爪鱼 7/21/14 10:03
大家说说做系统运维最悲催的事情是什么?

我曾经有一次做系统维护,想删除一个目录下的全部文件,
本来要敲 rm -rf /xxx 的
结果/xxx中间多了个空格变成了 / xxx

于是,我键盘敲得飞快,然后,然后发现半天还没删除完~~~~~

于是发现是在删除根目录,赶快CTRL-C,可是,,,我的/bin,/home,甚至 /sbin 都没有了~~~~~

大家有没有这样的悲催事件?
http://tieba.baidu.com/p/2222367610

Floor 4 巨大八爪鱼 11/4/14 16:39
ubuntu 10.04下禁止删除根目录

Content converter:

Reply the post
Content:
User: You are currently anonymous.
Captcha:
Unclear? Try another one.
©2010-2025 Purasbar Ver3.0 [Mobile] [Desktop]
Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported license.