Linux注销现有会话
注解:为root结束其他用户会议
使用当前用户会议检查
华府
命令 :~]# w 17:49:20 up 198 days, 5:23, 3 users, load average: 0.00, 0.01, 0.05 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT root tty1 16:48 59:28 0.08s 0.08s -bash root pts/0 ord.secure-acces 16:50 0.00s 0.10s 0.02s w james pts/1 ord.secure-acces 17:49 5.00s 0.03s 0.03s -bash
注销用户 :
#kill-kill-uJames
确认 :
~]# w 17:50:07 up 198 days, 5:24, 2 users, load average: 0.00, 0.01, 0.05 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT root tty1 16:48 1:00m 0.08s 0.08s -bash root pts/0 ord.secure-acces 16:50 7.00s 0.10s 0.01s w
更新 29天前