리눅스 프로세스명으로 kill

Jmnote (토론 | 기여)님의 2014년 4월 21일 (월) 11:50 판 (→‎같이 보기)
리눅스 프로세스명 kill

1 방법 1: pkill

pkill 프로세스명
[root@jmnote ~]# ps -ef | grep gpg-agent
root      2575     1  0 11:49 ?        00:00:00 gpg-agent --daemon
root      2577     1  0 11:49 ?        00:00:00 gpg-agent --daemon
root      2583     1  0 11:49 ?        00:00:00 gpg-agent --daemon
root      2597  2404  0 11:50 pts/0    00:00:00 grep gpg-agent
[root@jmnote ~]# pkill gpg-agent
[root@jmnote ~]# ps -ef | grep gpg-agent
root      2600  2404  0 11:50 pts/0    00:00:00 grep gpg-agent

2 방법 2: killall

killall 프로세스명

3 방법 3: kill + pidof

kill `pidof 프로세스명`
kill -9 `pidof 프로세스명`

4 같이 보기

5 참고 자료

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}