If you need to end your Gnome session and logout via command line – type this in gnome-terminal or your preffered terminal emulator: [user@host ~]$ gnome-session-quit You will be logged out of your gnome-session as if you would click on the Logout button in the UI.