命令行删除所有内容 [英] Command Line Delete Everything
本文介绍了命令行删除所有内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我对终端/命令行中的某些内容有一个想法,它基本上非常非常容易地删除所有内容。我不想在我的电脑上试试,但理论上你觉得它可能有效吗?
sudo rm -r /
I had an idea for something in the terminal/command line that would basically delete EVERYTHING very very VERY easily. I didn't want to try it on my computer, but theoretically do you think it might work?
sudo rm -r /
推荐答案
大不了...在可移动驱动器上,或在一些不需要的目录上,你可以玩的任何东西。 :-)
这是
Big deal… Do it on removable drive, or on some unwanted directory, anything you can play with. :-)
It's
sudo rm -r /
或者,如果你真的想要在没有确认的情况下完成所有操作(强制),你需要使用-f:
or, if you really want to do it all without confirmation ("force"), you need to use -f:
sudo rm -rf /
请参阅:
http://en.wikipedia.org/wiki/Rm_%28Unix%29 [ ^ ],
http://www.faqs.org/faqs/unix-faq/faq/part3/section-6.html [ ^ ]。
这只会删除 <$ i> 中的所有 挂载点。
这篇关于命令行删除所有内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文