This chapter how to see who is login to Server & Kill that user.
Commands | Description |
w | Show who is logged on and what they are doing |
who | Show who is logged on |
whoami | Show what user I use to login |
who am i | Show what user I use to login and what I’m doing |
tty | Show current users pseudo terminal |
ps -ft pts/1 | Get process id for the pseudo terminal |
pkill | Kill user based on name and other attributes pkill -u username : Kill user based username pkill -t pts/0 : kill user based on pts. |
kill | Kill user based on PID, for example : kill -9 1234 |