• callouscomic@lemm.ee
      link
      fedilink
      English
      arrow-up
      0
      ·
      edit-2
      14 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
          0
          ·
          8 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.

    • gramie@lemmy.ca
      link
      fedilink
      arrow-up
      0
      ·
      15 hours ago

      If it were on an old installation of linux, it would delete everything on the file system, from every disk attached.

      Modern Linux systems require an additional flag to explicitly stay that you want to nuke your system.