![]() It also effectively disconnects all processes in the session from the controlling terminal. This signal is used to report that the user’s terminal is disconnected. To do that, you can use kill command to send a SIGHUP signal. Please fill in our comment section with your valuable feedback & suggestions. If you kill the login shell session, the user will be disconnected. We hope this topic was apt to your requirement. This article covers multiple ways to terminate user sessions. Now, terminate the process id of the user session: kill -9 PID # kill -9 155183 Conclusion: Once we identify the tty session, locate the PID of corresponding tty session using ps command: ps -ft ~]# ps -ft pts/4 This process needs additional efforts to terminate a user, using kill command when compared to previous two steps.īefore we proceed to kill the user session, we must find the tty session from ‘w’ command, as shown below: ~]# wĠ0:34:21 up 48 days, 23:38, 4 users, load average: 0.79, 0.58, 0.56 # killall -u magesh 3) How to terminate user session, using Kill command ![]() To view list of active ssh sessions, use ‘w’ command.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |