In this tip, we will see how to use the Terminal to force a user to log out of a Ubuntu host and kill all its running processes as well as its login shells.
Launch the Terminal and issue this command:
pkill -KILL -u UserID
Replace "UserID" with the username of the user you want to force its logout.
Note: this tip is also applicable on other Linux-based distributions.