killall命令杀死所有进程

  作者:bea

[root@localhost~]#ps-ef|grepviroot1758117398017:51pts/000:00:00vitest.txtroot1761117582017:51pts/100:00:00grepvi[root@localhost~]#ps-ef|grepviroot1758117398017:51pts/000:00:00vitest.txtroot1764017612017:51pts/200:00:00vitest.logroot17642175

[root@localhost ~]# ps -ef|grep vi

root     17581 17398  0 17:51 pts/0    00:00:00 vi test.txt

root     17611 17582  0 17:51 pts/1    00:00:00 grep vi

[root@localhost ~]# ps -ef|grep vi

root     17581 17398  0 17:51 pts/0    00:00:00 vi test.txt

root     17640 17612  0 17:51 pts/2    00:00:00 vi test.log

root     17642 17582  0 17:51 pts/1    00:00:00 grep vi

[root@localhost ~]# killall -9 vi

[root@localhost ~]# ps -ef|grep vi

root     17645 17582  0 17:52 pts/1    00:00:00 grep vi


有用  |  无用

猜你喜欢