0

how to log out the users from command-line

In my machine nearly 4 users were logged in.... Is it possible to log-out in command-line from root user....

alexander
asked Feb 5, 2017
1 Answer
0

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.

View More
jagannatharumugam
answered Feb 7, 2017
Your Answer
||||
 
100:0

Related Tutorials in how to log out the users from command-line

Related Tutorials in how to log out the users from command-line

Related Forums in how to log out the users from command-line

Related Forums in how to log out the users from command-line