Forum     

Go Back   Digit Technology Discussion Forum > Software > Open Source
Register FAQ Calendar Mark Forums Read

Open Source A place where you can talk to like-minded people about the fastest growing software movement today! Discuss anything and everything about Open Source software and Operating Systems.


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 19-02-2008, 08:02 PM   #1 (permalink)
GaurishSharma.com
 
gary4gar's Avatar
 
Join Date: May 2005
Location: Jaipur
Posts: 4,116
Talking 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.
gary4gar is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 19-02-2008, 08:42 PM   #2 (permalink)
Juke Box Hero
 
Join Date: Aug 2007
Posts: 1,204
Default Re: What happens when "sudo rm -rf /" is excuted

It's not a shitty command at all., it lets you play God
Hitboxx is offline  
Old 19-02-2008, 08:50 PM   #3 (permalink)
=--=l33t=--=
 
ring_wraith's Avatar
 
Join Date: Oct 2007
Location: In Limbo
Posts: 722
Default 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.
ring_wraith is offline  
Old 19-02-2008, 08:54 PM   #4 (permalink)
Wahahaha~!
 
Faun's Avatar
 
Join Date: Dec 2006
Location: Pune/there
Posts: 7,676
Default Re: What happens when "sudo rm -rf /" is excuted

Quote:
Originally Posted by ring_wraith View Post
^^ Ok, now you are being a fanboy.

Having a Self Destruct command for an OS is not a good idea!
the panic button
__________________
Blog | Flickr | Battlelog
Spoiler:
Asus Z68 V-Pro|i5 2500k|TRUE Black|Ripjaws X|U2311H|N560GTX|D7000|XONAR STX|RE272|RE0|CC51|XE200PRO Walnut| TD II V2| Ultraphile|N5800

Mono
Faun is online now  
Old 19-02-2008, 08:59 PM   #5 (permalink)
Juke Box Hero
 
Join Date: Aug 2007
Posts: 1,204
Default Re: What happens when "sudo rm -rf /" is excuted

Quote:
Originally Posted by ring_wraith View Post
^^ 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.
Hitboxx is offline  
Old 19-02-2008, 08:59 PM   #6 (permalink)
GaurishSharma.com
 
gary4gar's Avatar
 
Join Date: May 2005
Location: Jaipur
Posts: 4,116
Default Re: What happens when "sudo rm -rf /" is excuted

does this classify as a bug?
gary4gar is offline  
Old 19-02-2008, 09:00 PM   #7 (permalink)
=--=l33t=--=
 
ring_wraith's Avatar
 
Join Date: Oct 2007
Location: In Limbo
Posts: 722
Default 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.
ring_wraith is offline  
Old 19-02-2008, 09:04 PM   #8 (permalink)
Juke Box Hero
 
Join Date: Aug 2007
Posts: 1,204
Default 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.
Hitboxx is offline  
Old 19-02-2008, 09:05 PM   #9 (permalink)
Wahahaha~!
 
Faun's Avatar
 
Join Date: Dec 2006
Location: Pune/there
Posts: 7,676
Default Re: What happens when "sudo rm -rf /" is excuted

Quote:
Originally Posted by ring_wraith View Post
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 View Post
does this classify as a bug?
nope its a bliss
__________________
Blog | Flickr | Battlelog
Spoiler:
Asus Z68 V-Pro|i5 2500k|TRUE Black|Ripjaws X|U2311H|N560GTX|D7000|XONAR STX|RE272|RE0|CC51|XE200PRO Walnut| TD II V2| Ultraphile|N5800

Mono
Faun is online now  
Old 19-02-2008, 10:18 PM   #10 (permalink)
Just another linux lover.
 
subratabera's Avatar
 
Join Date: Jun 2006
Location: Bangalore, KA
Posts: 562
Default 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)
subratabera is offline  
Old 19-02-2008, 11:16 PM   #11 (permalink)
Wire muncher!
 
infra_red_dude's Avatar
 
Join Date: Nov 2003
Posts: 6,173
Default 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
infra_red_dude is online now  
Old 19-02-2008, 11:22 PM   #12 (permalink)
Wahahaha~!
 
Faun's Avatar
 
Join Date: Dec 2006
Location: Pune/there
Posts: 7,676
Default Re: What happens when "sudo rm -rf /" is excuted

isnt there -i flag ?
__________________
Blog | Flickr | Battlelog
Spoiler:
Asus Z68 V-Pro|i5 2500k|TRUE Black|Ripjaws X|U2311H|N560GTX|D7000|XONAR STX|RE272|RE0|CC51|XE200PRO Walnut| TD II V2| Ultraphile|N5800

Mono
Faun is online now  
Old 20-02-2008, 12:44 AM   #13 (permalink)
GaurishSharma.com
 
gary4gar's Avatar
 
Join Date: May 2005
Location: Jaipur
Posts: 4,116
Default Re: What happens when "sudo rm -rf /" is excuted

Quote:
Originally Posted by T159 View Post
isnt there -i flag ?
yes, as a counter you can put this in your ~.bashrc aliases section
gary4gar is offline  
Old 04-03-2008, 12:22 AM   #14 (permalink)
Resident Fanatic
 
Manshahia's Avatar
 
Join Date: Jul 2006
Location: /Milky way/earth/india/
Posts: 911
Default Re: What happens when "sudo rm -rf /" is excuted

can anyone explain in plain english wat this command does?
__________________
----------
Manshahia is offline  
Old 04-03-2008, 01:22 AM   #15 (permalink)
Wire muncher!
 
infra_red_dude's Avatar
 
Join Date: Nov 2003
Posts: 6,173
Default 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
infra_red_dude is online now  
Old 04-03-2008, 01:25 AM   #16 (permalink)
Wahahaha~!
 
Faun's Avatar
 
Join Date: Dec 2006
Location: Pune/there
Posts: 7,676
Default Re: What happens when "sudo rm -rf /" is excuted

give u a break from linux
__________________
Blog | Flickr | Battlelog
Spoiler:
Asus Z68 V-Pro|i5 2500k|TRUE Black|Ripjaws X|U2311H|N560GTX|D7000|XONAR STX|RE272|RE0|CC51|XE200PRO Walnut| TD II V2| Ultraphile|N5800

Mono
Faun is online now  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Microsoft "new" patent could "force" downloaders to view commercials!! Hitboxx Technology News 17 28-12-2007 09:06 PM
NEW VIRUS GIVING MESSAGE:"Can not find script file"WIN32.DLL.dll.vbs" ". mdp Software Q&A 5 02-10-2007 02:11 PM
VISTA TUTORIAL: Add "Hide File Names" Option in "View" Menu of Folders Vishal Gupta Tutorials 7 27-06-2007 10:46 PM
"INF Error", VGA Driver "Missing" Installing ATI Catalyst Drivers CannedLizard Hardware Q&A 4 29-07-2006 12:47 AM

 
Latest Threads
- by Charan
- by Charan
- by clmlbx

Advertisement




All times are GMT +5.5. The time now is 02:57 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2