Questions tagged [logout]
77 questions
27
votes
2 answers
Prevent Logoff from Killing tmux Session
I have noticed that a logoff (log out) from my X user session will kill any tmux session I have initiated, even sessions I had run with sudo tmux and similar commands. I am sure that this formerly did not happen, but some recent change has effected…
palswim
- 4,919
- 6
- 37
- 53
19
votes
3 answers
How can I run a script during GNOME logout if I don't have admin privileges?
I want to run a script before I log out of my GNOME session, to warn myself if I have forgotten a pendrive plugged into the machine.
However, all solutions I have found have not been enough for me:
This similar question suggests editing the…
hugomg
- 5,543
- 4
- 35
- 53
14
votes
5 answers
How to kill all open windows?
I want to close all windows appearing on my desktop. I've thought to do this through pkill, but I could only manage to kill them one at a time, which is not what I want. The end goal is to put this into a script to run a kiosk, it will detect if…
Joe
- 141
- 1
- 1
- 3
14
votes
1 answer
Force command to be run on logout or disconnect?
I'm logging in to a system via SSH and I'd like to be able to force a command to be run on logout, whether that's an intentional logout (exiting the shell) or because my SSH connection has dropped/been terminated. Is there any way to set this up? …
David
- 875
- 1
- 9
- 15
13
votes
1 answer
Why does running `killall init` as user log me out?
On multiple computers running Ubuntu 14.XX, I ran the command "killall init" as user, and was immediately logged out. I could log back in again without a problem. Why is this? What's going on behind the scenes?
EMBLEM
- 285
- 1
- 7
11
votes
1 answer
Logout user with systemd
I start my window manager with systemd service units (following this tutorial).
After I log in at tty1 the following gets executed in .zlogin (I'm using ZSH as a login shell):
if [[ -z "$DISPLAY" && $(tty) = /dev/tty1 ]]; then
nohup systemd --user…
mmh
- 381
- 1
- 2
- 7
10
votes
4 answers
How do I shutdown, reboot and logout the system from the command-line?
I would like to do that using the command-line, because sometimes my computer freezes and I need to force a shutdown (I know it's not good to the hardware).
And: What is the difference between Halt and Shutdown commands?
Zignd
- 3,003
- 10
- 35
- 48
10
votes
1 answer
Where is TMOUT being set in CentOS 7? How can I disable it?
I know I've tracked this down before but can't find the answer.
When I start a bash shell on CentOS 7 (from X Windows GNOME or KDE), the variable TMOUT is set which causes the shell to timeout after the specified period of inactivity.
The variable…
PatS
- 552
- 2
- 5
- 17
9
votes
2 answers
System service running as user is terminated on logout
I have a system service that is executed for selected users. Name is serv@ ( is UID of the user). I want to share user's resource limits with the service (place it into user-.slice) and I also want to use his…
jiwopene
- 1,002
- 7
- 19
9
votes
2 answers
How can I tell a running process to disregard SIGHUP?
Possible Duplicate:
How can I close a terminal without killing the command running in it?
I have a very low-end "server" running Debian Squeeze that I occasionally ssh to. The system tends to be slow, e.g. running apt-cache search might take half…
StackExchange saddens dancek
- 1,444
- 1
- 11
- 16
9
votes
3 answers
How to make Bash flush command history so it can be cleared?
I accidentally put a password on the command line and needed to clear Bash shell history. That was easy enough with echo "" > ~/.bash_history.
I added the same to my .bash_logout just in case for the future. However, when I check history after a…
user56041
9
votes
5 answers
command to log out of LXDE directly
To log out of LXDE, I can click on the "Start" menu, click "Logout" and when the menu pops up click on "logout" again.
Or I can type lxde-logout in my terminal and when the menu opens, click on "logout".
Both options are too cumbersome. I need a…
Martin Vegter
- 69
- 66
- 195
- 326
8
votes
2 answers
What processes can survive logging out of Linux, and what not?
I am trying to understand what happens when we log out of Linux (Ubuntu specifically):
How does a process initially request/notify the logging out process to perform logging out (by sending some signals, or some other IPC means)? What is the…
Tim
- 98,580
- 191
- 570
- 977
7
votes
6 answers
How can I logout from a graphical environment from the command line?
Part of the beauty of trying out alpha releases of operating systems is that things will break, including things we take for granted. Today it's the turn of the logout button.
So, how do you log out from the desktop environment du jour from the…
badp
- 2,977
- 2
- 24
- 32
7
votes
3 answers
What is the meaning and command executed on Ctrl+Alt+Del in Linux?
In my gnome GUI desktop of Ubuntu 12.04, Ctrl+Alt+Delete will log out instead of rebooting.
But I was told that
Switching to a text-based virtual console and pressing Ctrl+Alt+Delete
will reboot the machine. It will shut down cleanly and reboot,…
Tim
- 98,580
- 191
- 570
- 977