UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628
Rep:
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.
Thanks klearview, "exit" worked perfectly for me. Command line in server is all new to me so am all at sea as yet with what and how I'm doing things in 12.04
Cheers
This doesn't work in Lubuntu's LX terminal, when I enter "/usr/bin/gnome-session-quit --no-prompt" in the terminal I only get back a "** (gnome-session-quit:13804): WARNING **: Failed to call logout: The name org.gnome.SessionManager was not provided by any .service files".
entering "exit" in the terminal will close terminal. This certainly has nothing to do with logging out.
Actually, it has. If you log in on a virtual terminal (not a terminal emulator) or connect via SSH or Telnet to a machine the exit command will log you out.
This advice yields:
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.