리눅스에서 프로세스를 죽이는 방법은 다음과 같습니다.
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
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 730 |
|
19년 전 | 2732 | |
| 729 |
그레이스웹
|
19년 전 | 3523 | |
| 728 |
|
19년 전 | 2704 | |
| 727 |
|
19년 전 | 2543 | |
| 726 |
|
19년 전 | 2360 | |
| 725 |
|
19년 전 | 2262 | |
| 724 |
|
19년 전 | 2143 | |
| 723 |
|
19년 전 | 4266 | |
| 722 |
|
19년 전 | 2690 | |
| 721 |
|
19년 전 | 2182 | |
| 720 |
|
19년 전 | 2282 | |
| 719 |
|
19년 전 | 2861 | |
| 718 |
|
19년 전 | 1971 | |
| 717 |
|
19년 전 | 3199 | |
| 716 |
|
19년 전 | 2762 | |
| 715 |
|
19년 전 | 2282 | |
| 714 |
|
19년 전 | 1835 | |
| 713 |
|
19년 전 | 2251 | |
| 712 |
|
19년 전 | 2017 | |
| 711 |
|
19년 전 | 1916 | |
| 710 |
|
19년 전 | 2490 | |
| 709 |
|
19년 전 | 2345 | |
| 708 |
|
19년 전 | 3903 | |
| 707 |
|
19년 전 | 3745 | |
| 706 |
|
19년 전 | 2252 | |
| 705 |
|
19년 전 | 3324 | |
| 704 |
|
19년 전 | 1993 | |
| 703 |
|
19년 전 | 2392 | |
| 702 |
|
19년 전 | 2288 | |
| 701 |
홀로남은자
|
19년 전 | 2354 | |
| 700 |
홀로남은자
|
19년 전 | 2188 | |
| 699 | 19년 전 | 2823 | ||
| 698 |
|
19년 전 | 2846 | |
| 697 |
|
19년 전 | 3185 | |
| 696 |
|
19년 전 | 3054 | |
| 695 |
|
19년 전 | 2726 | |
| 694 |
|
19년 전 | 2954 | |
| 693 |
|
19년 전 | 3200 | |
| 692 |
|
19년 전 | 2890 | |
| 691 |
|
19년 전 | 2635 | |
| 690 | 19년 전 | 2940 | ||
| 689 | 19년 전 | 4519 | ||
| 688 | 19년 전 | 2444 | ||
| 687 | 19년 전 | 2462 | ||
| 686 | 19년 전 | 3494 | ||
| 685 | 19년 전 | 3177 | ||
| 684 | 19년 전 | 2845 | ||
| 683 | 19년 전 | 2070 | ||
| 682 | 19년 전 | 1783 | ||
| 681 | 19년 전 | 2883 | ||
| 680 | 19년 전 | 1736 | ||
| 679 | 19년 전 | 2315 | ||
| 678 | 19년 전 | 3968 | ||
| 677 | 19년 전 | 3750 | ||
| 676 | 19년 전 | 3477 | ||
| 675 | 19년 전 | 3417 | ||
| 674 |
|
19년 전 | 1576 | |
| 673 |
|
19년 전 | 1941 | |
| 672 |
|
19년 전 | 1868 | |
| 671 | 19년 전 | 2536 | ||
| 670 | 19년 전 | 4646 | ||
| 669 |
|
19년 전 | 2776 | |
| 668 |
|
19년 전 | 1932 | |
| 667 |
|
19년 전 | 1948 | |
| 666 |
|
19년 전 | 1854 | |
| 665 |
|
19년 전 | 2587 | |
| 664 |
|
19년 전 | 8186 | |
| 663 |
|
19년 전 | 2739 | |
| 662 |
|
19년 전 | 2798 | |
| 661 |
|
19년 전 | 3053 | |
| 660 |
|
19년 전 | 2227 | |
| 659 |
|
19년 전 | 2245 | |
| 658 |
|
19년 전 | 2183 | |
| 657 |
|
19년 전 | 2090 | |
| 656 |
|
19년 전 | 2281 | |
| 655 |
|
19년 전 | 2542 | |
| 654 |
|
19년 전 | 3085 | |
| 653 | 19년 전 | 2338 | ||
| 652 | 19년 전 | 1921 | ||
| 651 |
|
19년 전 | 2862 | |
| 650 | 19년 전 | 5023 | ||
| 649 | 19년 전 | 3518 | ||
| 648 | 19년 전 | 3472 | ||
| 647 | 19년 전 | 2980 | ||
| 646 | 19년 전 | 2417 | ||
| 645 | 19년 전 | 1506 | ||
| 644 | 19년 전 | 3148 | ||
| 643 | 19년 전 | 2026 | ||
| 642 |
|
19년 전 | 5404 | |
| 641 | 19년 전 | 2441 | ||
| 640 | 19년 전 | 3440 | ||
| 639 | 19년 전 | 2876 | ||
| 638 | 19년 전 | 1770 | ||
| 637 | 19년 전 | 3883 | ||
| 636 | 19년 전 | 2436 | ||
| 635 | 19년 전 | 2324 | ||
| 634 |
|
19년 전 | 3029 | |
| 633 |
|
19년 전 | 3309 | |
| 632 | 19년 전 | 2516 | ||
| 631 | 19년 전 | 2273 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기