当前位置: 技术问答>linux和unix
小妹请教各位大哥,在unix下,如何显示进程,和kill掉进程?
来源: 互联网 发布时间:2014-12-06
本文导语: 小妹请教各位大哥,在unix下,如何显示进程,和kill掉进程? | Hi quyansong, Which Unix? In Linux, "ps" to display processes. "kill -9" to kill processes. And in other Unix, you might also be albe to use...
小妹请教各位大哥,在unix下,如何显示进程,和kill掉进程?
|
Hi quyansong,
Which Unix? In Linux,
"ps" to display processes.
"kill -9" to kill processes.
And in other Unix, you might also be albe to use these two commands.
Enjoy!
Orsino
Which Unix? In Linux,
"ps" to display processes.
"kill -9" to kill processes.
And in other Unix, you might also be albe to use these two commands.
Enjoy!
Orsino
|
ps -ef | grep proname
proname 是你要查进程名字
显示类似 12323 proname
用 kill 12323 就可以杀掉了
proname 是你要查进程名字
显示类似 12323 proname
用 kill 12323 就可以杀掉了
|
SCO OpenServer
ps -ef |more
ps -u username(用户名字)
kill -9 pid(进程号)
ps -ef |more
ps -u username(用户名字)
kill -9 pid(进程号)
|
kill的信号9不是发一个请求去停止进程的运行,而是简单的终止这个进程的运行。只有当进程正处于系统调用的时候,这个方法才不能立刻奏效,在这种情况下一旦那个进程从系统调用中返回,将会停止运行。