리눅스에서 프로세스를 죽이는 방법은 다음과 같습니다.
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
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 630 | 19년 전 | 2346 | ||
| 629 |
|
19년 전 | 2006 | |
| 628 |
|
19년 전 | 3120 | |
| 627 |
|
19년 전 | 2030 | |
| 626 |
|
19년 전 | 2066 | |
| 625 |
|
19년 전 | 1718 | |
| 624 |
|
19년 전 | 2221 | |
| 623 | 19년 전 | 2195 | ||
| 622 |
|
19년 전 | 2507 | |
| 621 |
|
19년 전 | 2907 | |
| 620 |
|
19년 전 | 2403 | |
| 619 | 19년 전 | 2466 | ||
| 618 | 19년 전 | 3512 | ||
| 617 |
|
19년 전 | 3230 | |
| 616 |
|
19년 전 | 3219 | |
| 615 |
|
19년 전 | 3035 | |
| 614 |
|
19년 전 | 2043 | |
| 613 |
|
19년 전 | 2374 | |
| 612 |
|
19년 전 | 2237 | |
| 611 |
|
19년 전 | 2082 | |
| 610 |
|
19년 전 | 2514 | |
| 609 |
|
19년 전 | 2419 | |
| 608 |
|
19년 전 | 2807 | |
| 607 | 19년 전 | 2193 | ||
| 606 | 19년 전 | 3526 | ||
| 605 | 19년 전 | 1988 | ||
| 604 | 19년 전 | 2594 | ||
| 603 | 19년 전 | 1608 | ||
| 602 |
|
19년 전 | 2833 | |
| 601 | 19년 전 | 3074 | ||
| 600 |
|
19년 전 | 2153 | |
| 599 | 19년 전 | 1997 | ||
| 598 | 19년 전 | 2480 | ||
| 597 | 19년 전 | 2388 | ||
| 596 |
|
19년 전 | 3072 | |
| 595 |
|
19년 전 | 6751 | |
| 594 | 19년 전 | 2707 | ||
| 593 | 19년 전 | 3184 | ||
| 592 |
|
19년 전 | 3087 | |
| 591 |
|
19년 전 | 1929 | |
| 590 | 19년 전 | 3363 | ||
| 589 | 19년 전 | 2207 | ||
| 588 |
|
19년 전 | 2705 | |
| 587 | 19년 전 | 2343 | ||
| 586 |
|
19년 전 | 4361 | |
| 585 | 19년 전 | 2486 | ||
| 584 | 19년 전 | 2754 | ||
| 583 |
|
19년 전 | 3521 | |
| 582 |
|
19년 전 | 3717 | |
| 581 |
|
19년 전 | 3249 | |
| 580 | 19년 전 | 2483 | ||
| 579 | 19년 전 | 3069 | ||
| 578 | 19년 전 | 3965 | ||
| 577 | 19년 전 | 3808 | ||
| 576 | 19년 전 | 1743 | ||
| 575 |
|
19년 전 | 2207 | |
| 574 |
|
19년 전 | 5402 | |
| 573 | 19년 전 | 6713 | ||
| 572 | 19년 전 | 2561 | ||
| 571 | 19년 전 | 2103 | ||
| 570 | 19년 전 | 2601 | ||
| 569 | 19년 전 | 3299 | ||
| 568 | 19년 전 | 3525 | ||
| 567 | 19년 전 | 2981 | ||
| 566 | 19년 전 | 2598 | ||
| 565 |
|
19년 전 | 4716 | |
| 564 |
|
19년 전 | 6726 | |
| 563 |
|
19년 전 | 4999 | |
| 562 |
|
19년 전 | 5947 | |
| 561 |
|
19년 전 | 2690 | |
| 560 |
|
19년 전 | 2536 | |
| 559 |
|
19년 전 | 2220 | |
| 558 |
|
19년 전 | 2298 | |
| 557 | 19년 전 | 4593 | ||
| 556 |
|
19년 전 | 4666 | |
| 555 | 19년 전 | 2502 | ||
| 554 | 19년 전 | 2175 | ||
| 553 | 19년 전 | 2522 | ||
| 552 |
|
19년 전 | 3159 | |
| 551 | 19년 전 | 2937 | ||
| 550 |
|
19년 전 | 1895 | |
| 549 |
|
19년 전 | 1955 | |
| 548 |
|
19년 전 | 3142 | |
| 547 |
|
19년 전 | 2356 | |
| 546 |
|
19년 전 | 3612 | |
| 545 |
|
19년 전 | 2543 | |
| 544 |
|
19년 전 | 1847 | |
| 543 |
|
19년 전 | 2453 | |
| 542 |
|
19년 전 | 1726 | |
| 541 |
|
19년 전 | 1404 | |
| 540 |
|
19년 전 | 1532 | |
| 539 |
|
19년 전 | 1801 | |
| 538 |
|
19년 전 | 1581 | |
| 537 |
|
19년 전 | 1778 | |
| 536 |
|
19년 전 | 1560 | |
| 535 |
|
19년 전 | 1958 | |
| 534 |
|
19년 전 | 1843 | |
| 533 |
|
19년 전 | 1445 | |
| 532 |
|
19년 전 | 1442 | |
| 531 |
|
19년 전 | 1355 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기