Sudo rm -rf .

  • palordrolap@fedia.io
    link
    fedilink
    arrow-up
    7
    ·
    4 hours ago

    There’s an ancient UNIX copypasta that’s basically the plot of this comic, but it’s troublingly hard to find the original online.

    Here’s one version I found: http://www.anvari.org/fun/Web_Tina/CREATION.html

    I don’t remember “technocrat” being part of the original, but it wouldn’t be the first time my recollection has been wrong.

    • prettybunnys@piefed.social
      link
      fedilink
      English
      arrow-up
      9
      ·
      4 hours ago

      Production system, first day, did it at / and it wasn’t until I saw /bin scrolling by that I realized my mistake.

      Luckily it was a stateless system and a reboop brought it back but i learned a valuable lesson that morning.

    • jaybone@lemmy.zip
      link
      fedilink
      English
      arrow-up
      3
      ·
      4 hours ago

      I got into this bad habit of trompsing around as root on our dev systems at work because who gives a shit we abuse and reprovision those systems all the time.
      But then I find myself at home on one of my home servers or desktops fumbling around as root. Because I don’t want to constantly run sudo. Fortunately nothing bad has happened, bad enough to be memorable anyway, in the last 20 years or so. I guess I’m still pretty careful. Or lucky.

    • Stupidmanager@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      edit-2
      2 hours ago

      Going to point out that not only is *.* unnecessary, but he’s in ~ (home) so assuming it even worked he just deleted his home.

      • jaybone@lemmy.zip
        link
        fedilink
        English
        arrow-up
        6
        ·
        4 hours ago

        And if he’s on / (root) on most common distros, there won’t be any dirs with . (dot) in their name. Unless this matches the dot from the cwd, in which case this is the same as “rm -rf /“? Now I’m curious, I don’t often perform operations on the cwd using dot.

        • Lena@gregtech.eu
          link
          fedilink
          arrow-up
          4
          ·
          4 hours ago

          At least bash doesn’t seem to match it…

          gregor@raspberrypi:~ $ ls
          bridge  navidrome  seed  traefik
          gregor@raspberrypi:~ $ ls *.*
          ls: cannot access '*.*': No such file or directory
          gregor@raspberrypi:~ $ cat *.*
          cat: '*.*': No such file or directory
          
          • jaybone@lemmy.zip
            link
            fedilink
            English
            arrow-up
            1
            ·
            edit-2
            4 hours ago

            Right, so then if asterisk wildcards don’t match on . and … then, in most common distros where there is no dot in any of the top level dirs in /, “rm -rf *.*” in the top level / dir is basically harmless and likely a noop.

            So OP is wrong.

  • Rusty Shackleford@programming.dev
    link
    fedilink
    English
    arrow-up
    7
    ·
    6 hours ago

    Don’t forget to add the -v to see the apocalypse unfold in real-time!

    Alabado sea El Omnissiah.

    • El Señor Archmagos Miguelito Malparido Hijo de Puta VII
  • LordCrom@lemmy.world
    link
    fedilink
    arrow-up
    8
    ·
    7 hours ago

    Well, you can’t call yourself a computer expert until you erase your entire drive or make it unbootable at least 3 times.

    • ttyybb@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      5 hours ago

      Well I’m 2/3 the way to being a computer expert (Technically I would be at 3/3 at least, but taking bad updates is a repeate and doesn’t include me messing around with stuff)

  • JasonDJ@lemmy.zip
    link
    fedilink
    arrow-up
    8
    ·
    edit-2
    9 hours ago

    Silly god! You just had to chattr -i !

    “All-knowing” my ass. Half-baked deity can’t even gentoo.