Kick A Linux User Who’s Logged In

In command line type in who or w will list all the users who are currently logged in.

To log them off type in the following:
pkill -KILL -u danny

where danny is the username. If ‘danny’ was logged in multiple times e.g locally and via ssh then both will be logged off.

Linux logout user or logoff user commands

About Danny

I.T software professional always studying and applying the knowledge gained and one way of doing this is to blog. Danny also has participates in a part time project called Energy@Home [http://code.google.com/p/energyathome/] for monitoring energy usage on a premise. Dedicated to I.T since studying pure Information Technology since the age of 16, Danny Tsang working in the field that he has aimed for since leaving school. View all posts by Danny → This entry was posted in Linux and tagged , , , . Bookmark the permalink.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.