Linux / UNIX: Kill User Session

Linux / UNIX: Kill User Session

To kill a user session on a Linux or Unix system, you can use the pkill command followed by the name of the user, like this:

pkill -u username
Source:‮.www‬lautturi.com

This will kill all processes owned by the user with the specified username.

Alternatively, you can use the killall command followed by the name of the process, like this:

killall -u username

This will kill all processes owned by the user with the specified username, regardless of the process name.

Note that these commands will only work if you have the necessary permissions to kill processes owned by other users.

Created Time:2017-10-29 22:08:56  Author:lautturi