English 中文(简体)
有人在Linux尝试过Rm -rf / *吗?
原标题:Anyone ever actually tried rm -rf /* in Linux? [closed]
  • 时间:2012-05-25 15:58:06
  •  标签:
  • linux
  • rm
Closed. This question is off-topic. It is not currently accepting answers.

想要改进这个问题吗? 更新了问题 ,因此堆积溢流的回答是

Closed 11 years ago.

在 Linux 中, 任何人都曾经尝试过 < code> rm -rf / / code > 或类似的东西吗? 您总是听到人们笑话它, 但我很想知道它是否真的执行, 如果是的话, 它实际上造成了什么样的损害( 不是从删除磁盘的角度)。

问题回答

就你而言,我试过了。我有一堆"rm: rm: cannot remote...",即使用 Sudo。如果你想试试,我建议虚拟Box 和 Ubuntu 的拷贝。

我试过吗?不,我试过了吗?是的,很糟。不过,如果你运气好的话:

  • You weren t logged in as root, so the damage will be minimal
  • You ve installed safe-rm which will prevent stuff like this.

是的,我做到了,但只有在VM中, 才能恢复, 只是为了测试和演示(我过去教过OS)。

在更老的分布中,它会执行并消除你的分布, 但在大多数更新的分布中, 这将失败 。

如果你想尝试,做一个你不在乎的地方, 或者在VM里做,你可以像我一样回去。

维基百科: rm - rf( 变式, rm - rf /, rm - rf * 等) 经常用于关于 Unix 灾害的笑话和动画[2] 。 命令的 rm - rf 变式, 如果由根目录上的超级用户操作, 将导致计算机上几乎每个可移植的安装文件系统的内容被删除, 直至系统本身从缺少某些关键文件、 目录或类似文件时崩溃 。

http://en.wikipedia.org/wiki/Rm_(Unix)

我觉得有些暴动者加了保护

EDIT:松饼将保护与保护联系起来。





相关问题
Signed executables under Linux

For security reasons, it is desirable to check the integrity of code before execution, avoiding tampered software by an attacker. So, my question is How to sign executable code and run only trusted ...

encoding of file shell script

How can I check the file encoding in a shell script? I need to know if a file is encoded in utf-8 or iso-8859-1. Thanks

How to write a Remote DataModule to run on a linux server?

i would like to know if there are any solution to do this. Does anyone? The big picture: I want to access data over the web, using my delphi thin clients. But i´would like to keep my server/service ...

How can I use exit codes to run shell scripts sequentially?

Since cruise control is full of bugs that have wasted my entire week, I have decided the existing shell scripts I have are simpler and thus better. Here is what I have so far svn update /var/www/...

Good, free, easy-to-use C graphics libraries? [closed]

I was wondering if there were any good free graphics libraries for C that are easy to use? It s for plotting 2d and 3d graphs and then saving to a file. It s on a Linux system and there s no gnuplot ...

热门标签