Séra Balázs@lemmy.world to linuxmemes@lemmy.worldEnglish · 1 year agoSometimes less is morelemmy.worldimagemessage-square27fedilinkarrow-up1204arrow-down121
arrow-up1183arrow-down1imageSometimes less is morelemmy.worldSéra Balázs@lemmy.world to linuxmemes@lemmy.worldEnglish · 1 year agomessage-square27fedilink
minus-squareSteveTech@programming.devlinkfedilinkEnglisharrow-up26·1 year agoI think you’d have to do echo o | sudo tee /proc/sysrq-trigger, otherwise sudo only works for the echo, not the write.
minus-squareoutdated_belated@lemmy.sdf.orglinkfedilinkEnglisharrow-up11·1 year agoHoly 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.
minus-squareGuyNoIRQ@infosec.publinkfedilinkEnglisharrow-up6·1 year agoecho c | sudo tee /proc/sysrq-trigger 🫣
minus-squaremvirts@lemmy.worldlinkfedilinkarrow-up4·1 year agoAh I guess I just use sudo bash a lot 😅
I think you’d have to do
echo o | sudo tee /proc/sysrq-trigger
, otherwise sudo only works for the echo, not the write.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.echo c | sudo tee /proc/sysrq-trigger
🫣Ah I guess I just use sudo bash a lot 😅