how to logout from terminal in 13.10?
Solution 1
gnome-session-quit --no-prompt
will log you out of an existing Unity session, without a prompt.
Solution 2
I usually do a killall -u <your-user-name>
to stop my current session and clean-up any remaining processes of mine.
Solution 3
If you are in a gnome / unity environment, you could use the gnome-session-quit
command, you could use gnome-session-quit --no-prompt
if you don't want to choose between lock or logout.
If you are in a pure terminal (no X-environment) exit
should do the trick
Solution 4
You can use dbus signal to logout from the desktop, with dbus-send
:
dbus-send --session --type=method_call --print-reply --dest=org.gnome.SessionManager /org/gnome/SessionManager org.gnome.SessionManager.Logout uint32:1
Tested with gnome and unity.
Related videos on Youtube
mx7
LinkedIn Profile: https://in.linkedin.com/in/raja-genupula-05205531 Endorse me If I helped you. Blog : http://thelinuxmen.blogspot.com/ Ubuntu - CentOS - Fedora - Windows - Severs - IIS - FTP - Security Thank you.
Updated on September 18, 2022Comments
-
mx7 over 1 year
I have seen some previous post about logout from terminal but those were for old versions. I didnt find the way for logout in Ubuntu 13.10 from terminal.
How can I logout from terminal in Ubuntu 13.10 ?
-
thorstorm over 10 yearsTyping
exit
doesn't work? -
Ash over 10 yearsCtrl-D? (Feel like I'm missing something in this question...)
-
Takkat over 10 yearsaskubuntu.com/questions/15795/… don't work?
-
Takkat over 10 years"... and above" should include all releases greater than 11.10 (12.04, 12.10, 13.04, 13.10, 14.04 ...) - if any of these procedures stopped working we'd urgently need to edit the answers there to say so.
-
Oli over 10 yearsIf you've seen a previous post and you've tested it, make sure you a link to it and show us what didn't work.
-
-
mx7 over 10 yearscant to do this , because its not safe.
-
MadMike over 10 yearswhat is not safe about it?
-
mx7 over 10 years
-
MadMike over 10 years
killall -u <username>
will only kill the <user-name> processes (ie. no root-processes will be harmed). Additionally I don't say to kill it with-9
. Your link doesn't relate to my answer at all. -
MadMike over 10 years@rajagenupula still not convinced yet? Please explain some more what is wrong with my answer.
-
mx7 over 10 yearsWell nothing , I miss read it . my fault.my post closed any way.