ref
http://www.cnblogs.com/peida/archive/2012/12/20/2825837.html
note
kill pid
kill 3268
实例3:先用ps查找进程,然后用kill杀掉
命令:
kill 3268
输出:
[root@localhost test6]# ps -ef|grep vim
root 3268 2884 0 16:21 pts/1 00:00:00 vim install.log
root 3370 2822 0 16:21 pts/0 00:00:00 grep vim
[root@localhost test6]# kill 3268
[root@localhost test6]# kill 3268
-bash: kill: (3268) - 没有那个进程
[root@localhost test6]#
kill -9 pid
实例4:彻底杀死进程
命令:
kill –9 3268