Content Entry

Linux - 注销其它用户

  2008-09-11   GNU/Linux   Linux pkill logout

列出当前用户
rui@eryx-desktop:~$ w
16:38:07 up 32 min, 2 users, load average: 0.34, 0.37, 0.68
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
rui tty7 :0 16:06 0.00s 1:25m 1.60s x-session-manag
rui pts/0 :0.0 16:38 0.00s 0.10s 0.00s w
lee pts/1 :0.0 16:38 2.00s 0.08s 0.08s bash

注销某用户
rui@eryx-desktop:~$ pkill -kill -t pts/1

--EOF--

comments loading