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.
Shutdown:
$ sudo gnome-session-quit --power-off
Reboot:
$ 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
Leave a Reply