리눅스에서 프로세스를 죽이는 방법은 다음과 같습니다.
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
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 430 | 19년 전 | 4090 | ||
| 429 | 19년 전 | 3287 | ||
| 428 | 19년 전 | 4121 | ||
| 427 | 19년 전 | 3464 | ||
| 426 | 19년 전 | 3096 | ||
| 425 | 19년 전 | 3392 | ||
| 424 | 19년 전 | 2433 | ||
| 423 | 19년 전 | 2844 | ||
| 422 | 19년 전 | 2336 | ||
| 421 | 19년 전 | 3701 | ||
| 420 | 19년 전 | 4727 | ||
| 419 | 19년 전 | 3779 | ||
| 418 |
|
19년 전 | 1728 | |
| 417 | 19년 전 | 2734 | ||
| 416 | 19년 전 | 2382 | ||
| 415 | 19년 전 | 2601 | ||
| 414 | 19년 전 | 4398 | ||
| 413 |
|
19년 전 | 2583 | |
| 412 | 19년 전 | 3033 | ||
| 411 |
|
19년 전 | 2978 | |
| 410 |
|
19년 전 | 3666 | |
| 409 |
|
19년 전 | 3623 | |
| 408 |
|
19년 전 | 1843 | |
| 407 | 19년 전 | 2216 | ||
| 406 | 19년 전 | 2769 | ||
| 405 | 19년 전 | 2435 | ||
| 404 | 19년 전 | 4291 | ||
| 403 | 19년 전 | 3290 | ||
| 402 |
NeoGenesis
|
19년 전 | 4083 | |
| 401 | 19년 전 | 2594 | ||
| 400 |
|
19년 전 | 2480 | |
| 399 | 19년 전 | 2942 | ||
| 398 | 19년 전 | 2475 | ||
| 397 | 19년 전 | 2774 | ||
| 396 | 19년 전 | 2461 | ||
| 395 | 19년 전 | 3167 | ||
| 394 | 19년 전 | 1706 | ||
| 393 | 19년 전 | 2980 | ||
| 392 | 19년 전 | 2242 | ||
| 391 | 19년 전 | 2171 | ||
| 390 | 19년 전 | 2268 | ||
| 389 | 19년 전 | 2635 | ||
| 388 | 19년 전 | 2132 | ||
| 387 | 19년 전 | 4469 | ||
| 386 |
|
19년 전 | 2674 | |
| 385 |
|
19년 전 | 2466 | |
| 384 | 19년 전 | 2987 | ||
| 383 | 19년 전 | 3038 | ||
| 382 | 19년 전 | 3091 | ||
| 381 |
|
19년 전 | 2624 | |
| 380 |
|
19년 전 | 3003 | |
| 379 | 19년 전 | 2540 | ||
| 378 | 19년 전 | 2198 | ||
| 377 | 19년 전 | 2772 | ||
| 376 | 19년 전 | 2463 | ||
| 375 |
|
19년 전 | 2548 | |
| 374 | 19년 전 | 3799 | ||
| 373 | 19년 전 | 3258 | ||
| 372 | 19년 전 | 4979 | ||
| 371 |
세은아빠2
|
19년 전 | 2404 | |
| 370 | 19년 전 | 4494 | ||
| 369 | 19년 전 | 3096 | ||
| 368 | 19년 전 | 2882 | ||
| 367 | 19년 전 | 3717 | ||
| 366 | 19년 전 | 2630 | ||
| 365 | 19년 전 | 3721 | ||
| 364 | 19년 전 | 4002 | ||
| 363 | 19년 전 | 3425 | ||
| 362 | 19년 전 | 3469 | ||
| 361 | 19년 전 | 4091 | ||
| 360 |
hwatta
|
19년 전 | 2349 | |
| 359 | 19년 전 | 5091 | ||
| 358 | 19년 전 | 3641 | ||
| 357 | 19년 전 | 2583 | ||
| 356 |
sdesign1s
|
19년 전 | 2266 | |
| 355 | 20년 전 | 2734 | ||
| 354 | 20년 전 | 3019 | ||
| 353 | 20년 전 | 2784 | ||
| 352 |
|
20년 전 | 5761 | |
| 351 |
|
20년 전 | 2693 | |
| 350 |
|
20년 전 | 4276 | |
| 349 |
hwatta
|
20년 전 | 2171 | |
| 348 | 20년 전 | 7299 | ||
| 347 | 20년 전 | 2404 | ||
| 346 | 20년 전 | 3490 | ||
| 345 | 20년 전 | 4294 | ||
| 344 | 20년 전 | 2623 | ||
| 343 | 20년 전 | 3909 | ||
| 342 | 20년 전 | 3051 | ||
| 341 | 20년 전 | 4076 | ||
| 340 |
|
20년 전 | 5113 | |
| 339 |
|
20년 전 | 4220 | |
| 338 | 20년 전 | 5849 | ||
| 337 | 20년 전 | 2025 | ||
| 336 |
|
20년 전 | 3301 | |
| 335 |
|
20년 전 | 3526 | |
| 334 |
|
20년 전 | 2909 | |
| 333 |
hwatta
|
20년 전 | 2422 | |
| 332 | 20년 전 | 4643 | ||
| 331 | 20년 전 | 2259 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기