Article Title: how does an administrator kick a user in Linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
I checked this command everywhere. I was too lazy to record it. I finally found this method again today, and it is wonderful to record it quickly.
In shell, who can see which users have connected to the local machine, including pts, VPN, or other users. The administrator can use the following method to disconnect some users:
1. who-a view the connected pid Number.
2. There are several device files in the/etc/pts/directory. Run the fuser command to check which device file corresponds to the PID Number found in step 1. For example, fuser/etc/pts/0
3. If the connection to device 0 is found, use fuser-k/etc/pts/0.