• @[email protected]
    link
    fedilink
    English
    332 years ago

    I think you’d have to do echo o | sudo tee /proc/sysrq-trigger, otherwise sudo only works for the echo, not the write.

    • @[email protected]
      link
      fedilink
      English
      142 years ago

      Holy shit the reason for tee never really clicked until I saw this post. I’d used it in pasted commands, but it had always seemed superfluous.

        • @[email protected]
          link
          fedilink
          English
          132 years ago

          It writes to a file like >, and echos it back at the same time; in this case the latter isn’t needed (we’re just using it to write with sudo), but it’s good to know.

    • @mvirts
      link
      62 years ago

      Ah I guess I just use sudo bash a lot 😅