How do I log out via terminal?
I know how to sudo reboot & sudo shutdown -h now, but not logout!
|
exit
|
I meant logout & go to the login screen.
|
Quote:
|
I guess exit just won't work in 11.10 with these configurations:
Code:
sudo apt-get install gnome-session-fallback |
or just use Ctrl+d to logout.:)
|
Ctrl+d takes you out of your terminal.
exit certainly does not work for me either. Hardly ever log out but thought I would give it a whack. I use Debian testing so I don't think there should be much difference in terminal commands like this. I use plain halt in my root terminal to shut down. |
Code:
gnome-session-save --logout Code:
gnome-session-save --force-logout Code:
gnome-session-save --help |
Actually for me on Ubuntu precise (12.04) :
Code:
/usr/bin/gnome-session-quit --no-prompt |
Quote:
Cheers |
exit doesn't log one out
Quote:
|
Doesn't work in Lubuntu
Quote:
|
Quote:
|
Warning: Non functional advice
Quote:
a@SAM:~$ gnome-session-save --logout gnome-session-save: command not found a@SAM:~$ gnome-session-save --force-logout gnome-session-save: command not found a@SAM:~$ gnome-session-save --help gnome-session-save: command not found I even tried to install the "gnome" command above, only to encounter: a@SAM:~$ sudo apt-get install gnome-session-save Password: 正在讀取套件清單... 完成 正在了解依存關係 Currently reading status info... Completed E: Can't find gnome-session-save package location |
Lubuntu: Solution
Below are some commands that ended up working on my Lubuntu 12.10 (LXDE,non virtual boot):
sudo pkill -u username sudo service lightdm restart Worked beautifully!! |
All times are GMT -5. The time now is 12:15 PM. |