리눅스에서 프로세스를 죽이는 방법은 다음과 같습니다.
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
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 230 | 20년 전 | 2072 | ||
| 229 | 20년 전 | 3145 | ||
| 228 | 20년 전 | 3328 | ||
| 227 | 20년 전 | 2404 | ||
| 226 | 20년 전 | 5490 | ||
| 225 | 20년 전 | 2527 | ||
| 224 | 20년 전 | 2971 | ||
| 223 | 20년 전 | 4209 | ||
| 222 | 20년 전 | 2610 | ||
| 221 | 20년 전 | 2294 | ||
| 220 | 20년 전 | 3681 | ||
| 219 | 20년 전 | 2080 | ||
| 218 | 20년 전 | 3569 | ||
| 217 | 20년 전 | 2488 | ||
| 216 | 20년 전 | 2922 | ||
| 215 | 20년 전 | 2230 | ||
| 214 | 20년 전 | 3340 | ||
| 213 | 20년 전 | 2922 | ||
| 212 | 20년 전 | 3056 | ||
| 211 | 20년 전 | 2150 | ||
| 210 | 20년 전 | 1904 | ||
| 209 | 20년 전 | 2363 | ||
| 208 | 20년 전 | 1985 | ||
| 207 | 20년 전 | 1682 | ||
| 206 | 20년 전 | 1857 | ||
| 205 | 20년 전 | 3953 | ||
| 204 | 20년 전 | 1679 | ||
| 203 | 20년 전 | 2016 | ||
| 202 | 20년 전 | 2360 | ||
| 201 | 20년 전 | 1830 | ||
| 200 | 20년 전 | 2962 | ||
| 199 | 20년 전 | 2007 | ||
| 198 | 20년 전 | 2091 | ||
| 197 | 20년 전 | 3657 | ||
| 196 | 20년 전 | 2991 | ||
| 195 | 20년 전 | 2100 | ||
| 194 | 20년 전 | 10256 | ||
| 193 | 20년 전 | 2252 | ||
| 192 | 20년 전 | 1609 | ||
| 191 | 20년 전 | 2674 | ||
| 190 | 20년 전 | 2297 | ||
| 189 | 20년 전 | 1693 | ||
| 188 | 20년 전 | 1490 | ||
| 187 | 20년 전 | 1914 | ||
| 186 | 20년 전 | 1738 | ||
| 185 | 20년 전 | 1780 | ||
| 184 | 20년 전 | 2367 | ||
| 183 | 20년 전 | 1570 | ||
| 182 | 20년 전 | 1489 | ||
| 181 | 20년 전 | 1629 | ||
| 180 | 20년 전 | 2729 | ||
| 179 | 20년 전 | 1812 | ||
| 178 | 20년 전 | 1863 | ||
| 177 | 20년 전 | 1988 | ||
| 176 | 20년 전 | 1809 | ||
| 175 | 20년 전 | 1876 | ||
| 174 | 20년 전 | 1695 | ||
| 173 | 20년 전 | 2061 | ||
| 172 | 20년 전 | 1790 | ||
| 171 | 20년 전 | 2571 | ||
| 170 | 20년 전 | 2279 | ||
| 169 | 20년 전 | 2557 | ||
| 168 | 20년 전 | 1492 | ||
| 167 | 20년 전 | 1582 | ||
| 166 | 20년 전 | 2163 | ||
| 165 | 20년 전 | 1641 | ||
| 164 | 20년 전 | 3776 | ||
| 163 | 20년 전 | 2672 | ||
| 162 | 20년 전 | 2095 | ||
| 161 | 20년 전 | 2802 | ||
| 160 | 20년 전 | 1739 | ||
| 159 | 20년 전 | 1620 | ||
| 158 | 20년 전 | 2570 | ||
| 157 | 20년 전 | 1491 | ||
| 156 | 20년 전 | 1745 | ||
| 155 | 20년 전 | 3235 | ||
| 154 | 20년 전 | 1905 | ||
| 153 | 20년 전 | 1630 | ||
| 152 | 20년 전 | 4959 | ||
| 151 | 20년 전 | 4583 | ||
| 150 | 20년 전 | 3520 | ||
| 149 | 20년 전 | 3807 | ||
| 148 | 20년 전 | 7086 | ||
| 147 | 20년 전 | 3558 | ||
| 146 | 20년 전 | 2631 | ||
| 145 | 20년 전 | 2626 | ||
| 144 | 20년 전 | 7173 | ||
| 143 | 20년 전 | 4608 | ||
| 142 | 20년 전 | 1904 | ||
| 141 | 20년 전 | 3254 | ||
| 140 | 20년 전 | 1967 | ||
| 139 | 20년 전 | 1589 | ||
| 138 | 20년 전 | 2314 | ||
| 137 | 20년 전 | 1785 | ||
| 136 | 20년 전 | 1462 | ||
| 135 | 20년 전 | 1792 | ||
| 134 | 20년 전 | 2972 | ||
| 133 | 20년 전 | 2456 | ||
| 132 | 20년 전 | 1709 | ||
| 131 | 20년 전 | 1651 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기