LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 08-28-2006, 12:39 PM   #1
ramram29
Member
 
Registered: Jul 2003
Location: Miami, Florida, USA
Distribution: Debian
Posts: 848
Blog Entries: 1

Rep: Reputation: 47
Absolutely one of the worst commands in Linux!


Login as root then type:

rm -rf /




DON'T DO THIS! IT'LL DELETE EVERYTHING!

Can you think of any other renegade commands?
 
Old 08-28-2006, 12:45 PM   #2
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 5,950
Blog Entries: 5

Rep: Reputation: 755Reputation: 755Reputation: 755Reputation: 755Reputation: 755Reputation: 755Reputation: 755
Thousands.

Linux unlike Windoze expects the user to be careful and won't ask: "Are you sure?" then ask "Are you really sure?" and finally ask "Are you really really sure?" before doing every task.

You can emulate this behavior if you really want by always using the -i flag with rm and never using the -f flag. Even then it will only ask you once for each file and won't delete directories.

What's really bad about rm -rf / is it doesn't delete everything on the drive because it will quit once it can no longer run rm itself so it is useless for getting rid of sensitive data before disposing of drives.

The experienced admin has however done something like the above on at least one occasion and it usually makes them learn to be rather careful when using commands like rm.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
worst experience with linux abunsair Linux - General 17 07-12-2005 07:19 PM
IMO : The best and the worst in Linux BBB General 64 02-13-2005 12:41 AM
Best/worst tv tuner in linux Forced2Morph Linux - Hardware 19 12-18-2004 10:03 PM
The worst ideas for the linux kernel dushkinup General 19 04-15-2004 12:37 PM
the worst part of linux :( bit7 Linux - Software 23 06-13-2003 04:50 PM


All times are GMT -5. The time now is 01:35 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration