Shutdown / Reboot / Logout Ubuntu 13.04 System with the gnome-session-quit command

Hello Linux Geeksters.

Besides the classical shutdown and reboot commands, on Ubuntu 13.04 Raring Ringtail is the gnome-session-quit command available.

When you shutdown Ubuntu Raring with gnome-session-quit –power-off, you will get a nice shutdown dialog.


enter image description here


$ sudo gnome-session-quit --power-off


$ sudo gnome-session-quit --reboot

Logout (you will be asked to confirm):

$ sudo gnome-session-quit --logout

Logout (without confirmation):

$ sudo gnome-session-quit --logout --no-prompt

To force shutdown or force reboot, use –force.

$ sudo gnome-session-quit --power-off --force

$ sudo gnome-session-quit --reboot --force


Tagged with: , , , , , , , ,
Posted in The Linux and Unix Articles!

Leave a Reply

Your email address will not be published. Required fields are marked *




Subscribe to get the latest Linux news and how to guides directly on your e-mail!