Logging out with CLI

Asked by Ben Hotchkiss

I'm trying to log out using the terminal. When I enter the command log out, the shell outputs
"bash: logout: not login shell: use 'exit' "

So I enter "exit" but all that does is close the terminal. I'm still shown as logged in according to the GUI. I want to log out using the terminal.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu gnome-terminal Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Ian Ace (iaculallad) said :
#1

Try:

gnome-session-save --kill

HTH.

Can you help with this problem?

Provide an answer of your own, or ask Ben Hotchkiss for more information if necessary.

To post a message you must log in.