 |
19-02-2008, 08:02 PM
|
#1 (permalink)
|
|
GaurishSharma.com
Join Date: May 2005
Location: Jaipur
Posts: 4,116
|
What happens when "sudo rm -rf /" is excuted
This from start all linux gurus here, are warning newbies that don't use sudo rm -rf / command, it very dangerous .
Lets see that this Sh!tty command do
http://www.youtube.com/watch?v=wWOjmvWPRvQ
Last edited by gary4gar; 19-02-2008 at 08:59 PM.
|
|
|
|
Advertisements. Register and be a member of the community to get rid of them.
|
|
Advertisement
|
|
19-02-2008, 08:42 PM
|
#2 (permalink)
|
|
Juke Box Hero
Join Date: Aug 2007
Posts: 1,204
|
Re: What happens when "sudo rm -rf /" is excuted
It's not a shitty command at all., it lets you play God
|
|
|
19-02-2008, 08:50 PM
|
#3 (permalink)
|
|
=--=l33t=--=
Join Date: Oct 2007
Location: In Limbo
Posts: 722
|
Re: What happens when "sudo rm -rf /" is excuted
^^ Ok, now you are being a fanboy.
Having a Self Destruct command for an OS is not a good idea!
__________________
Homer: God bless those pagans.
|
|
|
19-02-2008, 08:54 PM
|
#4 (permalink)
|
|
Wahahaha~!
Join Date: Dec 2006
Location: Pune/there
Posts: 7,676
|
Re: What happens when "sudo rm -rf /" is excuted
Quote:
Originally Posted by ring_wraith
^^ Ok, now you are being a fanboy.
Having a Self Destruct command for an OS is not a good idea!
|
the panic button
|
|
|
19-02-2008, 08:59 PM
|
#5 (permalink)
|
|
Juke Box Hero
Join Date: Aug 2007
Posts: 1,204
|
Re: What happens when "sudo rm -rf /" is excuted
Quote:
Originally Posted by ring_wraith
^^ Ok, now you are being a fanboy.
Having a Self Destruct command for an OS is not a good idea!
|
Nein, far from it, whenever I'm installing new distro's, I watch this command in action with a laugh and a coffee instead of doing it the conventional way. I enjoy it.
|
|
|
19-02-2008, 08:59 PM
|
#6 (permalink)
|
|
GaurishSharma.com
Join Date: May 2005
Location: Jaipur
Posts: 4,116
|
Re: What happens when "sudo rm -rf /" is excuted
does this classify as a bug?
|
|
|
19-02-2008, 09:00 PM
|
#7 (permalink)
|
|
=--=l33t=--=
Join Date: Oct 2007
Location: In Limbo
Posts: 722
|
Re: What happens when "sudo rm -rf /" is excuted
Before I set off a flame war, let me say that there may be some extremely rare instances in which this command might be useful, [like if you are a hacker and the FBI is at your door] but this is still not a good idea as a newbie could be misguided into running it, leading to severe data loss.
__________________
Homer: God bless those pagans.
|
|
|
19-02-2008, 09:04 PM
|
#8 (permalink)
|
|
Juke Box Hero
Join Date: Aug 2007
Posts: 1,204
|
Re: What happens when "sudo rm -rf /" is excuted
Yes it's a strict NO NO for a newbie until he/she is no more a newbie. But data loss can also be prevented, assuming by data you mean contents on a separate partition, in which case, just unmount that partition before issuing the command.
|
|
|
19-02-2008, 09:05 PM
|
#9 (permalink)
|
|
Wahahaha~!
Join Date: Dec 2006
Location: Pune/there
Posts: 7,676
|
Re: What happens when "sudo rm -rf /" is excuted
Quote:
Originally Posted by ring_wraith
Before I set off a flame war, let me say that there may be some extremely rare instances in which this command might be useful, [like if you are a hacker and the FBI is at your door] but this is still not a good idea as a newbie could be misguided into running it, leading to severe data loss.
|
with great power comes great responsibility (though i hate being responsible  )
Quote:
Originally Posted by gary4gar
does this classify as a bug?
|
nope its a bliss
|
|
|
19-02-2008, 10:18 PM
|
#10 (permalink)
|
|
Just another linux lover.
Join Date: Jun 2006
Location: Bangalore, KA
Posts: 562
|
Re: What happens when "sudo rm -rf /" is excuted
But this command just doing what's it is designed for.
Is'nt it...?
But I think it should warn user first of the consequences.
__________________
Today is a most unusual day, because we have never lived it before; we will never live it again; it is the only day we have.
(Registered Linux User #432737 - subratabera.blogspot.com)
|
|
|
19-02-2008, 11:16 PM
|
#11 (permalink)
|
|
Wire muncher!
Join Date: Nov 2003
Posts: 6,173
|
Re: What happens when "sudo rm -rf /" is excuted
^^^ +1, the user should be given not be allowed to use the -f switch when the target is / (root) or any other mounted partition (home/other FS etc.) without confirmation (Though it is completely against what -f is intended but for mounted partitions there should at least be one prompt).
__________________
"The true measure of a man is how he treats someone who can do him absolutely no good."
http://phoenix-ani.blogspot.com
|
|
|
19-02-2008, 11:22 PM
|
#12 (permalink)
|
|
Wahahaha~!
Join Date: Dec 2006
Location: Pune/there
Posts: 7,676
|
Re: What happens when "sudo rm -rf /" is excuted
isnt there -i flag ?
|
|
|
20-02-2008, 12:44 AM
|
#13 (permalink)
|
|
GaurishSharma.com
Join Date: May 2005
Location: Jaipur
Posts: 4,116
|
Re: What happens when "sudo rm -rf /" is excuted
Quote:
Originally Posted by T159
isnt there -i flag ?
|
yes, as a counter you can put this in your ~.bashrc aliases section
|
|
|
04-03-2008, 12:22 AM
|
#14 (permalink)
|
|
Resident Fanatic
Join Date: Jul 2006
Location: /Milky way/earth/india/
Posts: 911
|
Re: What happens when "sudo rm -rf /" is excuted
can anyone explain in plain english wat this command does?
__________________
----------
|
|
|
04-03-2008, 01:22 AM
|
#15 (permalink)
|
|
Wire muncher!
Join Date: Nov 2003
Posts: 6,173
|
Re: What happens when "sudo rm -rf /" is excuted
^^^ Clean shave!
__________________
"The true measure of a man is how he treats someone who can do him absolutely no good."
http://phoenix-ani.blogspot.com
|
|
|
04-03-2008, 01:25 AM
|
#16 (permalink)
|
|
Wahahaha~!
Join Date: Dec 2006
Location: Pune/there
Posts: 7,676
|
Re: What happens when "sudo rm -rf /" is excuted
give u a break from linux
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|