journal

Talkin' Loud and Sayin' Nothing

  

To Kill an Idle Login

There are number of commands you can run to check who’s logged in to your system, e.g. w, who, finger and users. If you happen to spot a login with an idle state and wish to get rid of it then grab the ttys name (you can find this using w or who) and query the process status for that particular terminal device as per this example:

ps -ft ttys001

This returns a list of the processes running under that terminal. Pick the process ID (PID) for the login command and kill it:

kill -9 123456

The idle login is now gone.