You get a bonus - 1 coin for daily activity. Now you have 1 coin

Forcibly Ending a User's Session (Kicking or Logging Out a User) in Linux/FreeBSD

Practice



To forcibly "kick" a user (log them out), we use the pkill command:

# pkill -u username

where you substitute the actual username for username.

You can see the current users with the who command:

# who


P.S. At the same time, on FreeBSD you remain logged in yourself, even if you specified yourself as the username argument. On Linux, however, if you kick yourself out, all sessions get closed, including the one you ran this command from.

Comments

To leave a comment

If you have any suggestion, idea, thanks or comment, feel free to write. We really value feedback and are glad to hear your opinion.
To reply

Lectures and tutorial on "LINUX operating system"

Terms: LINUX operating system