• anton@lemmy.blahaj.zone
    link
    fedilink
    arrow-up
    0
    ·
    5 months ago

    Remember to put

    #!/bin/rm
    

    at the top of every file, to teach people not to execute files they shouldn’t.

        • utopiah@lemmy.world
          link
          fedilink
          arrow-up
          0
          ·
          5 months ago

          Not really cool to post commands like that without consideration for privileges for newcomers, make sure to use sudo first. /s

        • jim3692@discuss.online
          link
          fedilink
          arrow-up
          0
          ·
          5 months ago

          NixOS has rm. But it’s not under /bin. There is no /bin in NixOS. The user’s programs are inside /run/current-system/sw/bin, and those are symlinks from files hidden in /nix/store.

          Running rm -rf / --no-preserve-root under NixOS, will not nuke the entire system, since /nix/store is mounted as read-only, and only remounted as rw when new applications are downloaded, or older unused ones are wiped.