How to kill the tty sessions in UNIX 1. First you have to check how many logins are present in server. Use "w" command to list all the sessions . [root@testserver ~]# w 00:22:13 up 106 days, 22:41, 2 users , load average: 3.31, 1.53, 1.09 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT root pts/15 master.world.com 00:22 1.00s 0.64s 0.61s w root pts/18 10.47.18.111 09Mar14 36days 0.01s 0.01s -bash Total 2 users are logged in. See there is a session from the IP 10.47.18.111 is idle for last 36 days. And I want to end this session. For that we have to note down the tty id which is used for this Login. See here it is pts/18 . 2....
Where there is a shell, there's a way.