Monitor User & Kill User In Linux

This chapter how to see who is login to Server & Kill that user.

CommandsDescription
wShow who is logged on and what they are doing
whoShow who is logged on
whoamiShow what user I use to login
who am iShow what user I use to login and what I’m doing
ttyShow current users pseudo terminal
ps -ft pts/1Get process id for the pseudo terminal
pkillKill user based on name and other attributes
pkill -u username : Kill user based username
pkill -t pts/0 : kill user based on pts.
killKill user based on PID, for example : kill -9 1234

Software Engineer | Digital Transformation Practitioner | Web & Mobile Developer | IT Consultant | Technopreneur | Blogger

Leave a Reply

Your email address will not be published. Required fields are marked *