强制退出其他用户 先看看自己是什么用户
who
查看当前登陆用户信息 w命令
[root@local ~]#w
21:22:22 up 10:15, 4 users, load average: 0.12, 0.04, 0.01
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
root pts/0 123.123.123.12 21:13 48.00s 0.00s 0.00s ssh admin.com -p 4
admin pts/2 123.123.12.11 21:21 45.00s 0.00s 0.00s -bash
root pts/3 123.123.123.12 21:21 40.00s 0.00s 0.00s -bash
root pts/4 123.123.123.12 21:21 0.00s 0.02s 0.00s w
使用命令pkill杀掉终端
pkill -9 -t pts/0
再用w命令看看清除效果