Skip to content

Instantly share code, notes, and snippets.

@gilangvperdana
Created June 18, 2023 02:29
Show Gist options
  • Save gilangvperdana/e50105b4ee675d88d5804f05d0a91894 to your computer and use it in GitHub Desktop.
Save gilangvperdana/e50105b4ee675d88d5804f05d0a91894 to your computer and use it in GitHub Desktop.
Force Reboot Ubuntu Server from CLI

Force Reboot Ubuntu from CLI

If you have a problem when you can't reboot or shutdown your VM with shutdown -r now reboot now etc, you can force reboot with this command :

sudo -i
echo s > /proc/sysrq-trigger
echo u > /proc/sysrq-trigger
echo b > /proc/sysrq-trigger

Warn :

  • That command is forcly reboot your OS, please ensure you save your work like (unmount, sychronize, etc) before exec thats command.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment