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

Source: Internet
Author: User
Tags pkill

Linux force kick-out user command:

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

[[Email Protected]_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 [email protected] IDLE jcpu PCPU
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
[Email protected]_s01_192.168.1.106_a ~]# pkill-kill-t PTS/2

Third, verify that the operation is successful
[[Email Protected]_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 [email protected] IDLE jcpu PCPU
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 login username. The user repeatedly logs in, the account will also appear repeatedly.

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

From: Shows where the user landed the system.

[Email protected]: is the login at, indicating the time of landing into the system.

Idle: User idle time, from the end of the last task of the user, when the meeting is recorded.

JCPU: A terminal designator to differentiate, which indicates the CPU time spent on all process tasks associated with the terminal during the touch time period.

PCPU: Refers to the CPU time that is spent after the task of the what domain is executed.

What: Represents the currently executing task.

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

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.