User Tools

Site Tools


tty:kill_a_tty_session

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

tty:kill_a_tty_session [2016/07/09 22:15] – created petertty: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 
-</code> 
- 
-Result: 
- 
-<code> 
-08:50:26 up 152 days, 15:53,  2 users,  load average: 0.00, 0.02, 0.01 
-USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU WHAT 
-root     pts/   wks1 08:27    0.00s  0.04s  0.00s w 
-root     pts/   wks1 Mon09   15:41m  0.17s  0.17s -bash 
-</code> 
- 
- 
-2. Verify its PID 
- 
-<code bash> 
-ps -u root |grep -i pts/2 
-</code> 
- 
- 
-3. kill the connection 
- 
-<code bash> 
-kill -9 <PID> 
-</code> 
  
tty/kill_a_tty_session.1468102556.txt.gz · Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki