1 Answer
Yes, pkill command can be used to do this...
For example: If user1 is logged in and to logout from command-line, below command can be used...
# pkill -KILL -u user1
While this command is executed user1 will be logged out.
NOTE: the thing to be noted is this command needs root privilege.
Your Answer