In this post will show you the steps to check and kill unresponsive terminal sessions in a Linux machine. Whenever you open a new terminal session it will create a new process in the background which will have a process id the same which you can use it to kill the process whenever it’s unresponsive or forced to kill an unwanted opened session. Here I have used “who” command to find out who is in the systems. Also, I have used “kill” command to kill the process of the unresponsive terminal session or console. It can also be used to kill another process too.
I have also used “ps” command to find out the process id for the logged in users and its respective terminal sessions. Here, for example, I have used root user and it’s process id to kill the unresponsive terminal which is opened from server itself. Console and terminal are firmly related. Initially, they implied a bit of gear through which you could cooperate with a Linux operating system. “tty” is nothing but a regular terminal device or a native terminal device, “ttys” is nothing but a serial console and “pts” is nothing but a pseudo terminal services something which is opened by a software like xterm, ssh or screen.
Check and Kill Unresponsive Terminal Session
As a first step logged in to the linux machine as a root user and continue with the below screenshots to perform the same successfully by killing an unresponsive session.
If you find this post is useful/helpful, please follow, like and share. Thank you for visiting my blog!!!