输入W
查看信息
root@HAN:~# w 09:02:36 up 8 days, 20:10, 1 user, load average: 0.00, 0.00, 0.00 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT root pts/0 192.168.1.1 09:02 3.00s 0.02s 0.00s w
踢出pts/0的用户
pkill -kill -t pts/0
输入W
查看信息
root@HAN:~# w 09:02:36 up 8 days, 20:10, 1 user, load average: 0.00, 0.00, 0.00 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT root pts/0 192.168.1.1 09:02 3.00s 0.02s 0.00s w
踢出pts/0的用户
pkill -kill -t pts/0