How To Logout Logoff User Forcibly in Linux?

RSS
EMAIL
FACEBOOK
FACEBOOK
GOOGLE
GOOGLE
https://www.poftut.com/logout-logoff-user-forcibly-linux/
PINTEREST
PINTEREST
INSTAGRAM

We have some servers to manage. There are some user access to our server. We want to them log off or kill their processes by terminating. How can be achieve this?

Normal Logout

We can normally logout from a linux shell with logout command like below.

Logout Other Users

We can logout other users forcibly like below. Keep in mind we need to be root to complete this command.

We get currently logged on users.

and we can logout the user test2 now

  • User -u test2 is logout
  • pkill is the command which will send signals to the provided user processes
  • -KILL is the kill signal to the specified user processes.
RSS
EMAIL
FACEBOOK
FACEBOOK
GOOGLE
GOOGLE
https://www.poftut.com/logout-logoff-user-forcibly-linux/
PINTEREST
PINTEREST
INSTAGRAM

LEARN MORE  How To Set Java Home Path?

You may also like...

Leave a Reply

Your email address will not be published.

Enjoy this blog? Please spread the word :)