15.10.27 linux踢除終端

tolilong發表於2015-10-27
skill -9 踢除終端:
[root@oracle6 ~]# w
 22:17:50 up 80 days,  1:06, 10 users,  load average: 0.04, 0.34, 0.26
USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU WHAT
root     tty1     :0               08Aug15 80days  3:04   3:04  /usr/bin/Xorg :
root     pts/0    172.16.20.31     10Aug15 23days  0.04s  0.04s -bash
root     pts/1    :0.0             08Aug15 47days  0.00s  0.00s -bash
root     pts/2    192.168.111.108  21:52   24:32   0.03s  0.03s -bash
root     pts/3    192.168.111.109  21:59   18:15   0.02s  0.02s -bash
root     pts/4    192.168.111.115  22:07   10:00   0.02s  0.02s -bash
root     pts/5    192.168.111.115  22:07    9:52   0.00s  0.00s -bash
root     pts/6    192.168.111.116  22:13    3:17   0.02s  0.02s -bash
root     pts/7    192.168.111.119  22:17    3.00s  0.02s  0.02s -bash
root     pts/8    192.168.111.119  22:17    0.00s  0.03s  0.00s w
[root@oracle6 ~]# skill -9 pts/1
[root@oracle6 ~]# skill -9 pts/2
[root@oracle6 ~]# skill -9 pts/3


[root@oracle6 ~]# w
 22:18:16 up 80 days,  1:06,  7 users,  load average: 0.09, 0.33, 0.25
USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU WHAT
root     tty1     :0               08Aug15 80days  3:04   3:04  /usr/bin/Xorg :
root     pts/0    172.16.20.31     10Aug15 23days  0.04s  0.04s -bash
root     pts/4    192.168.111.115  22:07   10:26   0.02s  0.02s -bash
root     pts/5    192.168.111.115  22:07   10:18   0.00s  0.00s -bash
root     pts/6    192.168.111.116  22:13    3:43   0.02s  0.02s -bash
root     pts/7    192.168.111.119  22:17    0.00s  0.02s  0.00s w
root     pts/8    192.168.111.119  22:17    2.00s  0.03s  0.03s -bash

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24237320/viewspace-1816918/,如需轉載,請註明出處,否則將追究法律責任。

相關文章