리눅스에서 프로세스를 죽이는 방법은 다음과 같습니다.
1. PID를 확인한다.
1.1 top 명령어를 통해서 PID를 확인한다. 맨 앞에 나오는 것이 PID죠.
[yourid@blrblrblrblrblr examples]$ top
top - 08:18:31 up 11:10, 3 users, load average: 0.57, 0.31, 0.16
Tasks: 181 total, 1 running, 180 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.6%us, 1.4%sy, 0.0%ni, 97.9%id, 0.0%wa, 0.0%hi, 0.1%si, 0.0%st
Mem: 3354856k total, 3260856k used, 94000k free, 163416k buffers
Swap: 5439484k total, 0k used, 5439484k free, 2666480k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1534 root 20 0 60132 25m 7064 S 1.0 0.8 0:14.77 Xorg
18329 yourid 20 0 125m 13m 10m S 1.0 0.4 0:03.01 gnome-terminal
17823 yourid 20 0 25664 1816 1476 S 0.7 0.1 0:03.94 synergyc
17852 yourid 20 0 110m 7384 6052 S 0.5 0.2 0:31.41 multiload-apple
1 root 20 0 2888 1332 1120 S 0.0 0.0 0:01.04 init
2 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kthreadd
3 root 20 0 0 0 0 S 0.0 0.0 0:00.29 ksoftirqd/0
4 root RT 0 0 0 0 S 0.0 0.0 0:01.36 migration/0
5 root RT 0 0 0 0 S 0.0 0.0 0:00.00 watchdog/0
6 root RT 0 0 0 0 S 0.0 0.0 0:01.37 migration/1
7 root 20 0 0 0 0 S 0.0 0.0 0:00.27 ksoftirqd/1
8 root RT 0 0 0 0 S 0.0 0.0 0:00.00 watchdog/1
9 root 20 0 0 0 0 S 0.0 0.0 0:01.33 events/0
10 root 20 0 0 0 0 S 0.0 0.0 0:00.20 events/1
11 root 20 0 0 0 0 S 0.0 0.0 0:00.00 cpuset
12 root 20 0 0 0 0 S 0.0 0.0 0:00.00 khelper
13 root 20 0 0 0 0 S 0.0 0.0 0:00.00 netns
14 root 20 0 0 0 0 S 0.0 0.0 0:00.00 async/mgr
15 root 20 0 0 0 0 S 0.0 0.0 0:00.00 pm
16 root 20 0 0 0 0 S 0.0 0.0 0:00.01 sync_supers
17 root 20 0 0 0 0 S 0.0 0.0 0:00.03 bdi-default
18 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kintegrityd/0
1.2 top 말고 ps -ax로 PID를 확인한다.
[yourid@blrblrblrblrblr examples]$ ps -ax
Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.8/FAQ
PID TTY STAT TIME COMMAND
1 ? Ss 0:01 /sbin/init
2 ? S 0:00 [kthreadd]
3 ? S 0:00 [ksoftirqd/0]
4 ? S 0:01 [migration/0]
5 ? S 0:00 [watchdog/0]
6 ? S 0:01 [migration/1]
7 ? S 0:00 [ksoftirqd/1]
8 ? S 0:00 [watchdog/1]
9 ? S 0:01 [events/0]
10 ? S 0:00 [events/1]
11 ? S 0:00 [cpuset]
12 ? S 0:00 [khelper]
13 ? S 0:00 [netns]
14 ? S 0:00 [async/mgr]
15 ? S 0:00 [pm]
16 ? S 0:00 [sync_supers]
17 ? S 0:00 [bdi-default]
18212 ? S 0:00 /usr/libexec/gvfsd-burn --spawner :1.10 /org/gtk/gvfs/exec_spaw/1
18219 ? S 0:00 /usr/libexec/gvfsd-metadata
18329 ? Sl 0:03 gnome-terminal
18332 ? S 0:00 gnome-pty-helper
18333 pts/0 Ss 0:00 bash
18593 pts/1 Ss+ 0:00 bash
19309 ? S 0:00 /usr/sbin/httpd
19396 pts/0 R+ 0:00 ps -ax
2. kill -9 를 통해 프로세스를 제거한다.
Usage : kill -9 PID
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 130 | 20년 전 | 4021 | ||
| 129 | 20년 전 | 2959 | ||
| 128 | 20년 전 | 3697 | ||
| 127 | 20년 전 | 3534 | ||
| 126 | 20년 전 | 3788 | ||
| 125 | 20년 전 | 8607 | ||
| 124 | 20년 전 | 2612 | ||
| 123 | 20년 전 | 3768 | ||
| 122 | 20년 전 | 3225 | ||
| 121 | 20년 전 | 2627 | ||
| 120 | 20년 전 | 2690 | ||
| 119 | 20년 전 | 2597 | ||
| 118 | 20년 전 | 2872 | ||
| 117 |
|
20년 전 | 3071 | |
| 116 | 21년 전 | 5336 | ||
| 115 | 21년 전 | 3938 | ||
| 114 | 21년 전 | 4987 | ||
| 113 | 21년 전 | 6229 | ||
| 112 | 21년 전 | 7337 | ||
| 111 | 21년 전 | 18449 | ||
| 110 | 21년 전 | 6891 | ||
| 109 | 21년 전 | 2898 | ||
| 108 | 21년 전 | 4153 | ||
| 107 |
prosper
|
21년 전 | 2514 | |
| 106 |
prosper
|
21년 전 | 4336 | |
| 105 |
아우겐나이스
|
21년 전 | 2932 | |
| 104 | 21년 전 | 2278 | ||
| 103 | 21년 전 | 2490 | ||
| 102 | 21년 전 | 2276 | ||
| 101 | 21년 전 | 2593 | ||
| 100 | 21년 전 | 1765 | ||
| 99 | 21년 전 | 1584 | ||
| 98 | 21년 전 | 1635 | ||
| 97 | 21년 전 | 2149 | ||
| 96 | 21년 전 | 1896 | ||
| 95 | 21년 전 | 2395 | ||
| 94 | 21년 전 | 3583 | ||
| 93 | 21년 전 | 1577 | ||
| 92 | 21년 전 | 1773 | ||
| 91 | 21년 전 | 3194 | ||
| 90 | 21년 전 | 2356 | ||
| 89 | 21년 전 | 3192 | ||
| 88 | 21년 전 | 2878 | ||
| 87 | 21년 전 | 3307 | ||
| 86 | 21년 전 | 5154 | ||
| 85 | 21년 전 | 2539 | ||
| 84 | 21년 전 | 4840 | ||
| 83 | 21년 전 | 2518 | ||
| 82 | 21년 전 | 3131 | ||
| 81 | 21년 전 | 7647 | ||
| 80 | 21년 전 | 3845 | ||
| 79 | 21년 전 | 3228 | ||
| 78 | 21년 전 | 4709 | ||
| 77 | 21년 전 | 2920 | ||
| 76 | 21년 전 | 6233 | ||
| 75 | 21년 전 | 4486 | ||
| 74 | 21년 전 | 5801 | ||
| 73 | 21년 전 | 3639 | ||
| 72 | 21년 전 | 5983 | ||
| 71 | 21년 전 | 3135 | ||
| 70 | 21년 전 | 2863 | ||
| 69 | 21년 전 | 2653 | ||
| 68 | 21년 전 | 2462 | ||
| 67 | 21년 전 | 2671 | ||
| 66 | 21년 전 | 2693 | ||
| 65 | 21년 전 | 3801 | ||
| 64 | 21년 전 | 2844 | ||
| 63 | 21년 전 | 2470 | ||
| 62 | 21년 전 | 2283 | ||
| 61 | 21년 전 | 3100 | ||
| 60 | 21년 전 | 3153 | ||
| 59 | 21년 전 | 2532 | ||
| 58 | 21년 전 | 2605 | ||
| 57 | 21년 전 | 2989 | ||
| 56 | 21년 전 | 2348 | ||
| 55 | 21년 전 | 2778 | ||
| 54 | 21년 전 | 2149 | ||
| 53 | 21년 전 | 2378 | ||
| 52 | 21년 전 | 2719 | ||
| 51 |
prosper
|
21년 전 | 2372 | |
| 50 |
prosper
|
21년 전 | 2185 | |
| 49 | 21년 전 | 2202 | ||
| 48 | 21년 전 | 2362 | ||
| 47 | 21년 전 | 1955 | ||
| 46 | 21년 전 | 1941 | ||
| 45 | 21년 전 | 2148 | ||
| 44 | 21년 전 | 2377 | ||
| 43 | 21년 전 | 4592 | ||
| 42 |
prosper
|
21년 전 | 2727 | |
| 41 |
prosper
|
21년 전 | 2128 | |
| 40 | 21년 전 | 2191 | ||
| 39 | 21년 전 | 2160 | ||
| 38 | 21년 전 | 2437 | ||
| 37 | 21년 전 | 2580 | ||
| 36 | 21년 전 | 1794 | ||
| 35 | 21년 전 | 4091 | ||
| 34 | 21년 전 | 3866 | ||
| 33 | 21년 전 | 3009 | ||
| 32 |
prosper
|
21년 전 | 2923 | |
| 31 | 21년 전 | 5304 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기