tty:kill_a_tty_session
Differences
This shows you the differences between two versions of the page.
tty:kill_a_tty_session [2016/07/09 22:15] – created peter | tty:kill_a_tty_session [2019/12/04 21:57] (current) – removed peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== TTY - Kill a TTY Session ====== | ||
- | |||
- | 1. Check who is connected to the tty: | ||
- | |||
- | <code bash> | ||
- | w | ||
- | </ | ||
- | |||
- | Result: | ||
- | |||
- | < | ||
- | 08:50:26 up 152 days, 15: | ||
- | USER | ||
- | root | ||
- | root | ||
- | </ | ||
- | |||
- | |||
- | 2. Verify its PID | ||
- | |||
- | <code bash> | ||
- | ps -u root |grep -i pts/2 | ||
- | </ | ||
- | |||
- | |||
- | 3. kill the connection | ||
- | |||
- | <code bash> | ||
- | kill -9 <PID> | ||
- | </ | ||
tty/kill_a_tty_session.1468102556.txt.gz · Last modified: 2020/07/15 09:30 (external edit)