Page 1 of 7 123 ... LastLast
Results 1 to 10 of 67

Thread: Why does rm -rf even exist?

  1. #1
    Join Date
    Sep 2008
    Beans
    103
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Why does rm -rf even exist?

    Why would anyone want to use it?
    New ASUS EEE 900A currently has Eeebuntu on it

  2. #2
    Join Date
    Feb 2007
    Location
    Romania
    Beans
    Hidden!

  3. #3
    Join Date
    Apr 2006
    Beans
    265

    Re: Why does rm -rf even exist?

    err, because rm alone doesn't recursively remove files (-r) and if you already know what your deleting you don't want to have rm keep prompting you to confirm (-f)...

  4. #4
    Join Date
    Mar 2009
    Location
    Germany
    Beans
    78
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Why does rm -rf even exist?

    Nice phil. Question.

    Why does format c: on windows still exist

  5. #5
    Join Date
    Aug 2006
    Location
    Florianopolis, Brazil
    Beans
    1,354
    Distro
    Ubuntu Development Release

    Re: Why does rm -rf even exist?

    So competent people can quickly manage their files from the command line.
    On strike during the Oneiric cycle due to ungratefulness of Ubuntu.


  6. #6
    Join Date
    Mar 2008
    Location
    Back to India
    Beans
    278
    Distro
    Ubuntu Gnome 14.04 Trusty Tahr

    Re: Why does rm -rf even exist?

    Quote Originally Posted by seppl82 View Post
    Nice phil. Question.

    Why does format c: on windows still exist
    To remove the virus from the drive at once

  7. #7
    Join Date
    Jun 2006
    Location
    Israel
    Beans
    292

    Re: Why does rm -rf even exist?

    It exists because... it's useful? heh.

  8. #8
    Join Date
    Jul 2007
    Location
    Brugge, België
    Beans
    2,933

    Re: Why does rm -rf even exist?

    Linux with the rm command would be like driving a car without brakes.

    rm -fr can be dangerous if you don't know what the heck you're doing.

    If you do know what you are doing, it a powerful tool.

  9. #9
    Join Date
    Dec 2006
    Beans
    256

    Re: Why does rm -rf even exist?

    Because it's easier to type than 'find -exec rm {} \;' (Note: only try this if you are Steve Jobs or you happen to be using his computer).
    "We visited sixty-six islands and landed eighty-one times, wading, swimming (to shore). Most of the people were friendly and delightful; only two arrows shot at us, and only one went near -- So much for savages!" - J.C. Patterson

  10. #10
    Join Date
    Jan 2008
    Location
    North Las Vegas, Nevada
    Beans
    743
    Distro
    Ubuntu

    Re: Why does rm -rf even exist?

    I remember back when I was using Gutsy and Hardy, every now and then I'd try to empty the trash and it'd delete all but one or two files. When I tried to delete those leftover files, it would give me permission errors.

    So I'd just restore them to the desktop, fire up the terminal and use the rm -rf command (with sudo, of course) and delete the files.

    It hasn't happened to me at all in Intrepid, so I'm thinking it was a bug in Gutsy and Hardy that was initially causing the problem.

Page 1 of 7 123 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •