当前位置: 技术问答>linux和unix
杀进程问题
来源: 互联网 发布时间:2016-12-18
本文导语: linux as4u8,执行命令 who 显示如下信息: [root@runjingka ~]# who root pts/1 Jul 30 21:25 (zhifu.com) root pts/3 Jul 30 18:53 (222.130.189.230) 请问,如何杀掉这两个进程 ??? 请高手指教!...
linux as4u8,执行命令 who 显示如下信息:
[root@runjingka ~]# who
root pts/1 Jul 30 21:25 (zhifu.com)
root pts/3 Jul 30 18:53 (222.130.189.230)
请问,如何杀掉这两个进程 ??? 请高手指教!!!
[root@runjingka ~]# who
root pts/1 Jul 30 21:25 (zhifu.com)
root pts/3 Jul 30 18:53 (222.130.189.230)
请问,如何杀掉这两个进程 ??? 请高手指教!!!
|
[root@localhost ~]# w
22:46:05 up 10:40, 4 users, load average: 0.08, 0.02, 0.01
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
root tty1 - 22:44 1:47 0.02s 0.02s -bash
root pts/0 192.168.0.2 22:39 0.00s 0.02s 0.00s w
root pts/1 192.168.0.2 22:45 7.00s 0.02s 0.02s -bash
root pts/2 192.168.0.2 22:46 3.00s 0.02s 0.02s -bash
[root@localhost ~]# pkill -9 -t pts/1
[root@localhost ~]# pkill -9 -t pts/2
[root@localhost ~]# w
22:46:13 up 10:40, 2 users, load average: 0.07, 0.02, 0.00
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
root tty1 - 22:44 1:55 0.02s 0.02s -bash
root pts/0 192.168.0.2 22:39 0.00s 0.04s 0.01s w
[root@localhost ~]#
22:46:05 up 10:40, 4 users, load average: 0.08, 0.02, 0.01
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
root tty1 - 22:44 1:47 0.02s 0.02s -bash
root pts/0 192.168.0.2 22:39 0.00s 0.02s 0.00s w
root pts/1 192.168.0.2 22:45 7.00s 0.02s 0.02s -bash
root pts/2 192.168.0.2 22:46 3.00s 0.02s 0.02s -bash
[root@localhost ~]# pkill -9 -t pts/1
[root@localhost ~]# pkill -9 -t pts/2
[root@localhost ~]# w
22:46:13 up 10:40, 2 users, load average: 0.07, 0.02, 0.00
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
root tty1 - 22:44 1:55 0.02s 0.02s -bash
root pts/0 192.168.0.2 22:39 0.00s 0.04s 0.01s w
[root@localhost ~]#