You're viewing a single thread.
View all comments
30
comments
Wait you guys don't
sudo echo o > /proc/sysrq-trigger
?16 1 ReplyI think you'd have to do
echo o | sudo tee /proc/sysrq-trigger
, otherwise sudo only works for the echo, not the write.33 0 ReplyHoly 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.14 0 ReplyWhat does
tee
do?5 0 ReplyIt 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.13 0 Reply
echo c | sudo tee /proc/sysrq-trigger
🫣8 0 ReplyAh I guess I just use sudo bash a lot 😅
6 0 Reply
You've viewed 30 comments.
Scroll to top