I can not terminate a user session through the terminal with the logout command. The message is displayed:
bash: logout: not a command shell login: use "exit"
The name of the current desktop environment [ echo $DESKTOP_SESSION ]: lightdm-xsession
The reboot , shutdown works.
The final response line for the cat /etc/lsb-release; arch; lightdm --version cat /etc/lsb-release; arch; lightdm --version cat /etc/lsb-release; arch; lightdm --version is: lightdm 1.18.3
I had to end the session in order to try to get rid of the sudden hang of the system. Initially, I rebooted linux, ctrl + alt + F1 and then drove a reboot into the terminal. But now I will use sudo service lightdm restart .
exit. - Beast Winterwolfexitwill work if the command is executed directly from the shell, but in general it depends on the DE you are using. for example, for GNOMEgnome-session-quit --force, for XFCExfce4-session-logout. For others, I don’t know, google :) - Beast Winterwolf