Pine Blog

Using shotcut to shutdown your computer

In older versions of Ubuntu Ctrl + Alt + Del will bring up options for shutdown, restart, suspend and hibernate. These can then be selected with the arrow keys and Enter.

For a single hit solution in later versions you can use this script to create a keyboard shortcut. First you need to download the script and save it on your computer. Next you need to make it executable by right clicking on it and going to properties → Permissions → Allow executing file as a program. Finally go to System Settings → Keyboard → Shortcuts → Custom Shortcuts and click the small plus symbol. For the command type in

gnome-session-quit --power-off

or whatever path you saved the script to.

Suspend, hibernate and restart are also available by this method; just replace shutdown in the above command.

未经允许不得转载:Pine Blog » Using shotcut to shutdown your computer

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

Pine Blog
Anywhere, Anytime
E-mail:59054872@qq.com
苏ICP备15059480号-1