• callouscomic@lemm.ee
    link
    fedilink
    English
    arrow-up
    17
    ·
    edit-2
    16 hours ago

    These are unix/linux terminal actions.

    ‘sudo’ controls access rights, so it’s effectively like Windows admin rights. People typically wouldn’t be allowed to use sudo unless they own the system or are some kind of system administrator (like in a workplace).

    The ‘rm’ is the remove function, or deleting files or folders.

    ‘-rf’ are two options you can specify with the ‘rm’ to . The ‘-r’ part means recursive, and effectively conforms to the ‘rm’ you do in fact want to delete a directory (folder). Normally rm would not, and rmdir I think only works on empty directories. The ‘-f’ option forces removal of all items without any prompts for confirmation for individual items found for removal.

    Then the ‘/*’ is the file and or directory path you want to remove. In this case it’s the top of the system. The entire statement is essentially a joke about a full delete of your computer.

      • kewjo@lemmy.world
        link
        fedilink
        arrow-up
        7
        ·
        11 hours ago

        in Windows your separate each drive by a letter like C:, D:, etc, however on Linux your drives are mounted as part of your folder structure. the top level is called root which would be / you can then mount each disc directly as a folder under root, so for example /home could be a separate hard drive but it’s still mounted under root, note the starting slash. This means the command deletes any and all files+directories under root, this can include mounted USB, mounted network drives and anything mounted to your root. your basically nuking all the files you can access when you’re logged in as admin.

        • Buddahriffic@lemmy.world
          link
          fedilink
          arrow-up
          2
          ·
          9 hours ago

          Also windows locks files that are in use, so attempting to delete system32 would (probably, I’ve never tried it) give some errors because it’s using a bunch of those files already and would leave those files intact even if you’re very determined to get rid of them. This is why you need to reboot to apply many updates because even the updater can’t get around that restriction.

          It’s handled differently on Linux. I’m not 100% on the specifics of the implementation but it either loads files in use entirely into RAM or simply removes the reference to the file when deleted (or makes a new file and points the reference there if you’re replacing the file). That means anything that is currently using the file can continue to do so after a delete/overwrite, so the OS doesn’t prevent it from happening. This is why you can run any updates without restarting on Linux (though you do need to restart to get the system to use some updates, if they update critical components that can’t be restarted independently of the rest of the system, like the kernel).

          If you want to nuke your whole os install drive on windows, you need to boot into a different OS instance (which is what the repair partition is, just a barebones windows install that can access files on the main install without the locking). But Linux can do it from within the same instance.