Linux under the administrator to forcibly kick out the user's command to use the method

Source: Internet
Author: User
Tags pkill

Linux force kick Out User command:

First, enter the W command to view the logged in user information

[Root@kw_s01_192.168.1.106_a ~]# W

19:22:31 up 2:11, 3 users, Load average:0.00, 0.00, 0.00

USER TTY from login@ IDLE jcpu pcpu WHAT

Root pts/0 192.168.1.178 18:41 0.00s 0.16s 0.01s W

Root pts/1 192.168.1.178 19:22 4.00s 0.14s 0.05s ssh localhost

Root PTS/2 localhost.locald 19:22 4.00s 0.07s 0.07s-bash

Second, use the command pkill-kill-t user TTY

[Root@kw_s01_192.168.1.106_a ~]# pkill-kill-t PTS/2

 Third, verify the operation is successful

[Root@kw_s01_192.168.1.106_a ~]# W

19:24:25 up 2:12, 2 users, Load average:0.00, 0.00, 0.00

USER TTY from login@ IDLE jcpu pcpu WHAT

Root pts/0 192.168.1.178 18:41 0.00s 0.18s 0.02s W

Root pts/1 192.168.1.178 19:22 1:58 0.09s 0.09s-bash

Login User Information Description:

User: Displays the username of the login account. Users repeat the login, the account will also appear repeatedly.

TTY: The terminal used by the user to log in.

From: Shows where users are logged on to the system.

login@: The meaning of login at, indicating the time when the login was entered into the system.

IDLE: User idle time, from the last task after the user, when the meeting.

JCPU: A terminal code to differentiate, indicating that in the touch of time, all related to the terminal process tasks of CPU time.

PCPU: Refers to the CPU time that is consumed by the task execution of the what domain.

WHAT: Represents the currently executing task.

Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.