Skip to content

rm -rf *

Even though I have a good reason to do it, typing rm -rf * always makes me upset.

2 Comments

  1. I can’t figure out if I more so want to know what it means, or if I’m just interested in what makes you upset.

    [reply this comment]

    Sunday, November 2, 2008 at 9:50 pm | Permalink
  2. jeremy wrote:

    Bridget Callahan »

    OK. On any UNIX system, which includes Linux, BSD, and all derivatives thereof such as Apple’s OS X, rm is the command for strong is the command for remove. The -rf tells it to remove files recursively and to force it to do so, and not to ask you at any point in the process “Are you really sure you meant to delete this one?” The * tells it to remove everything in the directory you’re in.

    So, in short, this is the command that can completely wreck your computer. There are good reasons to type it sometimes, but if you type it in the wrong directory (say, the bottommost one) you can completely hose your system.

    So, even though I know what I’m doing, whenever I have occasion to type it, I get the sinking feeling that I’m about to cross the streams.

    [reply this comment]

    Monday, November 3, 2008 at 8:02 am | Permalink

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*