DEV Community

Discussion on: 9 Evil Bash Commands Explained

Collapse
 
mituc profile image
Victor Tarhon-Onu • Edited
  1. echo o > /proc/sysrq-trigger

For this to work sysrq doesn't have to be enabled via sysctl. The "o" command does an immediate power off. Very useful when you have an angry office mate who can't stop complaining about the memory usage of his/her linux workstation. This will definitely fix it. Works on servers and VMs a well. You can lure your most hated co-worker into adding this into cron.