Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
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 /
Posted
Comments
Sergey Alexandrovich Kryukov 6-Sep-14 0:51am    
How about RTFM?
—SA

Big deal… Do it on removable drive, or on some unwanted directory, anything you can play with. :-)
It's
sudo rm -r /

or, if you really want to do it all without confirmation ("force"), you need to use -f:
sudo rm -rf /


Please see:
http://en.wikipedia.org/wiki/Rm_%28Unix%29[^],
http://www.faqs.org/faqs/unix-faq/faq/part3/section-6.html[^].

—SA
 
Share this answer
 
Comments
CPallini 6-Sep-14 1:09am    
5.
Sergey Alexandrovich Kryukov 6-Sep-14 1:10am    
Thank you, Carlo.
—SA
That would just remove everything in / mount point.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 6-Sep-14 1:11am    
If the command line is written correctly of course... (a 5) :-)
—SA
CPallini 6-Sep-14 1:20am    
Thank you.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900