查看 当前有哪些用户登录
[root@dev bin]# w
23:27:21 up x days, x min, 3 users, load average: 0.35, 0.40, 0.37
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
root pts/0 1xx.x.x.x 23:27 8.00s 0.04s 0.03s top
root pts/2 1xx.x.x.x 23:05 0.00s 0.68s 0.31s -bash
root pts/3 1xx.x.x.x 23:06 21:13 0.01s 0.01s -bash
踢出用户
[root@dev bin]# pkill -kill -t pts/0