In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
In this issue, the editor will bring you about how to use administrator commands to force out users in the linux system. The article is rich in content and analyzes and describes for you from a professional point of view. I hope you can get something after reading this article.
Linux forces the user command to be kicked out:
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 whether 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 login user account name. If the user logs in repeatedly, the account will also be repeated.
TTY: the terminal used by the user to log in.
FROM: shows where the user logs in to the system.
LOGIN@: means LOGIN AT and indicates the time when you log in and enter the system.
IDLE: the idle time of the user, the time of the meeting since the end of the user's last task.
JCPU: a terminal code that indicates the CPU time spent by all process tasks related to the terminal during the touch period.
PCPU: refers to the CPU time spent after the task of the WHAT domain is executed.
WHAT: represents the currently executed task.
The above is the editor for you to share how to use administrator commands in the linux system to force out the user, if you happen to have similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.