0

I'm looking for a way to force shutdown the system using a single keyboard shortcut, nothing else, in 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?

  • 1
    Maybe sudo shutdown now works. – Tristan Feb 13 '18 at 9:42
  • I tried sudo shutdown now and it didn't work. Strangely enough, I then tried shutdown now and now it does... – Célestin Taramarcaz Feb 14 '18 at 17:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.