• dunz@feddit.nu
      link
      fedilink
      arrow-up
      11
      ·
      edit-2
      3 hours ago

      Use sudo -i instead, gives you an interactive shell without running the su binary with sudo, which is unnecessary

      Edit: it’s i not I

        • Snot Flickerman@lemmy.blahaj.zone
          link
          fedilink
          English
          arrow-up
          4
          ·
          edit-2
          3 hours ago

          It’s a really important switch for doing things like setting up wireguard, which has protected directories, you can’t actually enter the directory for wireguard setup without sudo -i

          (I mean technically you probably can with sudo su, too, but this is more elegant and less redundant)

    • aleq@lemmy.world
      link
      fedilink
      arrow-up
      4
      ·
      3 hours ago

      What’s the problem exactly? There are many ways to do it, and I think saying you run apt-get update is quite fine even if you’re not explicitly saying that you run it as root. And he may not have flatpaks.