Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 08-28-2006, 01:39 PM   #1
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 /


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

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251

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.


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 08:19 PM
IMO : The best and the worst in Linux BBB General 64 02-13-2005 01:41 AM
Best/worst tv tuner in linux Forced2Morph Linux - Hardware 19 12-18-2004 11:03 PM
The worst ideas for the linux kernel dushkinup General 19 04-15-2004 01:37 PM
the worst part of linux :( bit7 Linux - Software 23 06-13-2003 05:50 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:30 AM.

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