I'm looking for a way to force shutdown the system using a single keyboard shortcut, nothing else, in ubuntu17.10 using GNOME. I tried adding a keyboard shortcut using the command found here : Are there any Keyboard Shortcuts to Shutdown? which is
gnome-session-quit --power-off --force
The --force
option doesn't seem to be working, though. The shortcut opens the Power Off dialog with the usual cancel, restart and power off options. Any ideas?
sudo shutdown now
works. – Tristan Feb 13 '18 at 09:42sudo shutdown now
and it didn't work. Strangely enough, I then triedshutdown now
and now it does... – Célestin Taramarcaz Feb 14 '18 at 17:32