리눅스에서 프로세스를 죽이는 방법은 다음과 같습니다.
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
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 330 |
prosper
|
20년 전 | 2244 | |
| 329 |
prosper
|
20년 전 | 1857 | |
| 328 |
prosper
|
20년 전 | 1669 | |
| 327 | 20년 전 | 3746 | ||
| 326 | 20년 전 | 4825 | ||
| 325 |
hwatta
|
20년 전 | 2452 | |
| 324 |
|
20년 전 | 3122 | |
| 323 | 20년 전 | 5832 | ||
| 322 |
hwatta
|
20년 전 | 2823 | |
| 321 |
hwatta
|
20년 전 | 2300 | |
| 320 |
yesmoa
|
20년 전 | 4559 | |
| 319 | 20년 전 | 2656 | ||
| 318 | 20년 전 | 2225 | ||
| 317 |
kyodon
|
20년 전 | 2753 | |
| 316 | 20년 전 | 2559 | ||
| 315 |
|
20년 전 | 2869 | |
| 314 |
|
20년 전 | 3314 | |
| 313 |
|
20년 전 | 2626 | |
| 312 |
yesmoa
|
20년 전 | 4700 | |
| 311 | 20년 전 | 3235 | ||
| 310 |
홀로남은자
|
20년 전 | 4541 | |
| 309 | 20년 전 | 2996 | ||
| 308 | 20년 전 | 4109 | ||
| 307 | 20년 전 | 4341 | ||
| 306 | 20년 전 | 7013 | ||
| 305 | 20년 전 | 3854 | ||
| 304 | 20년 전 | 2745 | ||
| 303 |
크리스탈처럼
|
20년 전 | 4380 | |
| 302 | 20년 전 | 2191 | ||
| 301 |
|
20년 전 | 4311 | |
| 300 | 20년 전 | 3772 | ||
| 299 | 20년 전 | 2578 | ||
| 298 | 20년 전 | 4806 | ||
| 297 |
|
20년 전 | 2511 | |
| 296 | 20년 전 | 4505 | ||
| 295 | 20년 전 | 3552 | ||
| 294 | 20년 전 | 3577 | ||
| 293 | 20년 전 | 3806 | ||
| 292 | 20년 전 | 3191 | ||
| 291 |
yesmoa
|
20년 전 | 5908 | |
| 290 | 20년 전 | 2928 | ||
| 289 | 20년 전 | 5831 | ||
| 288 |
|
20년 전 | 2355 | |
| 287 |
|
20년 전 | 1772 | |
| 286 |
|
20년 전 | 2127 | |
| 285 |
|
20년 전 | 3525 | |
| 284 |
|
20년 전 | 2024 | |
| 283 |
|
20년 전 | 4388 | |
| 282 | 20년 전 | 3373 | ||
| 281 |
|
20년 전 | 2193 | |
| 280 |
|
20년 전 | 7789 | |
| 279 | 20년 전 | 5526 | ||
| 278 | 20년 전 | 2976 | ||
| 277 |
|
20년 전 | 5560 | |
| 276 | 20년 전 | 2347 | ||
| 275 | 20년 전 | 2588 | ||
| 274 | 20년 전 | 2354 | ||
| 273 | 20년 전 | 2204 | ||
| 272 | 20년 전 | 2128 | ||
| 271 | 20년 전 | 2590 | ||
| 270 | 20년 전 | 2597 | ||
| 269 | 20년 전 | 2465 | ||
| 268 | 20년 전 | 2666 | ||
| 267 | 20년 전 | 2349 | ||
| 266 | 20년 전 | 2556 | ||
| 265 | 20년 전 | 3484 | ||
| 264 |
|
20년 전 | 5343 | |
| 263 |
|
20년 전 | 3707 | |
| 262 | 20년 전 | 3159 | ||
| 261 |
허저비
|
20년 전 | 5910 | |
| 260 |
|
20년 전 | 5705 | |
| 259 | 20년 전 | 4125 | ||
| 258 | 20년 전 | 2366 | ||
| 257 | 20년 전 | 3172 | ||
| 256 | 20년 전 | 1891 | ||
| 255 | 20년 전 | 1552 | ||
| 254 | 20년 전 | 3127 | ||
| 253 | 20년 전 | 3535 | ||
| 252 | 20년 전 | 5100 | ||
| 251 | 20년 전 | 5795 | ||
| 250 | 20년 전 | 3664 | ||
| 249 | 20년 전 | 5001 | ||
| 248 | 20년 전 | 3272 | ||
| 247 | 20년 전 | 3622 | ||
| 246 |
|
20년 전 | 7934 | |
| 245 |
|
20년 전 | 5888 | |
| 244 | 20년 전 | 4471 | ||
| 243 |
|
20년 전 | 4031 | |
| 242 | 20년 전 | 2760 | ||
| 241 | 20년 전 | 2702 | ||
| 240 | 20년 전 | 2343 | ||
| 239 | 20년 전 | 1639 | ||
| 238 |
아우겐나이스
|
20년 전 | 2245 | |
| 237 |
email
|
20년 전 | 3671 | |
| 236 | 20년 전 | 4131 | ||
| 235 | 20년 전 | 10452 | ||
| 234 | 20년 전 | 5047 | ||
| 233 | 20년 전 | 3358 | ||
| 232 | 20년 전 | 3184 | ||
| 231 | 20년 전 | 3821 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기