• Tuxman@kbin.social
      link
      fedilink
      arrow-up
      51
      ·
      9 months ago

      A little more destructive 😅
      “As a ‘super user’, do ‘remove’ with ‘force’ and ‘recursively’ everything starting from the beginning of the hard drive (‘/‘)

      Though I think most consumer Linux OS has like 2-3 warnings before actually doing it……… doesn’t stop everybody 😅

    • Wulff@sh.itjust.works
      link
      fedilink
      arrow-up
      43
      ·
      9 months ago

      In Linux, the root of the filesystem is /

      The command would remove recursively every file/directory in the filesystem, essentially nuking the whole system.

      • Kühe sind toll@feddit.de
        link
        fedilink
        arrow-up
        14
        arrow-down
        1
        ·
        9 months ago

        Im not sure if it would delete the whole system. Isn’t it more likely that it will destroy everything until it kills a file/directory necessary for the operation to run?

        • Possibly linux@lemmy.zip
          link
          fedilink
          English
          arrow-up
          32
          ·
          9 months ago

          Its running in ram so no, it would destroy everything.

          What’s worse is if you have any storage mounted. I’ve known people who wiped there backups

          • Haui@discuss.tchncs.de
            link
            fedilink
            arrow-up
            4
            ·
            9 months ago

            Thats rough. Good to know. Also one reason why I ever only connect to storage when I need it and dismount when I don’t and don’t save the credentials (and have another backup off site).

        • Knusper@feddit.de
          link
          fedilink
          arrow-up
          24
          ·
          9 months ago

          Before throwing away an old laptop, I had it do that to itself. Well, more specifically I used shred, which doesn’t just mark files as ‘deleted’, but also actively overwrites the bytes on disk.

          I started it from a TTY, so that there was no GUI that could want to load files from disk and then potentially crash the whole operation. But yeah, it just went through like normal and I ended up back on my shell (which makes sense, the shell should be in RAM).
          It was only when I ran exit to close that shell, that the system showed it was irreparably broken.

          I did then also take out the hard drive to whack it with a hammer, just to be sure. ¯\_(ツ)_/¯

        • JPAKx4@lemmy.sdf.org
          link
          fedilink
          arrow-up
          19
          ·
          9 months ago

          A lot of Linux distros load most system required processes into memory, which is why you can update while using the system. This would also allow you to (probably) delete everything.

        • Wulff@sh.itjust.works
          link
          fedilink
          arrow-up
          4
          ·
          9 months ago

          Well, maybe. My explanation was an oversimplification.

          You can always try it and see for yourself (in a VM of course).

        • Natanael@slrpnk.net
          link
          fedilink
          arrow-up
          1
          ·
          edit-2
          9 months ago

          It would delete all files, but if you happen to be running a distro configured to run from a RAM disk after boot then it won’t actually immediately halt (see almost every single liveCD Linux environment)