리눅스에서 프로세스를 죽이는 방법은 다음과 같습니다.
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년 전 | 2725 | |
| 729 |
그레이스웹
|
19년 전 | 3517 | |
| 728 |
|
19년 전 | 2691 | |
| 727 |
|
19년 전 | 2531 | |
| 726 |
|
19년 전 | 2345 | |
| 725 |
|
19년 전 | 2251 | |
| 724 |
|
19년 전 | 2137 | |
| 723 |
|
19년 전 | 4258 | |
| 722 |
|
19년 전 | 2676 | |
| 721 |
|
19년 전 | 2166 | |
| 720 |
|
19년 전 | 2263 | |
| 719 |
|
19년 전 | 2852 | |
| 718 |
|
19년 전 | 1963 | |
| 717 |
|
19년 전 | 3197 | |
| 716 |
|
19년 전 | 2754 | |
| 715 |
|
19년 전 | 2273 | |
| 714 |
|
19년 전 | 1824 | |
| 713 |
|
19년 전 | 2242 | |
| 712 |
|
19년 전 | 2013 | |
| 711 |
|
19년 전 | 1908 | |
| 710 |
|
19년 전 | 2472 | |
| 709 |
|
19년 전 | 2334 | |
| 708 |
|
19년 전 | 3896 | |
| 707 |
|
19년 전 | 3742 | |
| 706 |
|
19년 전 | 2239 | |
| 705 |
|
19년 전 | 3308 | |
| 704 |
|
19년 전 | 1975 | |
| 703 |
|
19년 전 | 2385 | |
| 702 |
|
19년 전 | 2280 | |
| 701 |
홀로남은자
|
19년 전 | 2348 | |
| 700 |
홀로남은자
|
19년 전 | 2182 | |
| 699 | 19년 전 | 2817 | ||
| 698 |
|
19년 전 | 2841 | |
| 697 |
|
19년 전 | 3174 | |
| 696 |
|
19년 전 | 3046 | |
| 695 |
|
19년 전 | 2709 | |
| 694 |
|
19년 전 | 2945 | |
| 693 |
|
19년 전 | 3192 | |
| 692 |
|
19년 전 | 2881 | |
| 691 |
|
19년 전 | 2629 | |
| 690 | 19년 전 | 2929 | ||
| 689 | 19년 전 | 4515 | ||
| 688 | 19년 전 | 2440 | ||
| 687 | 19년 전 | 2452 | ||
| 686 | 19년 전 | 3480 | ||
| 685 | 19년 전 | 3169 | ||
| 684 | 19년 전 | 2826 | ||
| 683 | 19년 전 | 2060 | ||
| 682 | 19년 전 | 1776 | ||
| 681 | 19년 전 | 2876 | ||
| 680 | 19년 전 | 1723 | ||
| 679 | 19년 전 | 2312 | ||
| 678 | 19년 전 | 3963 | ||
| 677 | 19년 전 | 3739 | ||
| 676 | 19년 전 | 3469 | ||
| 675 | 19년 전 | 3410 | ||
| 674 |
|
19년 전 | 1568 | |
| 673 |
|
19년 전 | 1939 | |
| 672 |
|
19년 전 | 1864 | |
| 671 | 19년 전 | 2527 | ||
| 670 | 19년 전 | 4632 | ||
| 669 |
|
19년 전 | 2767 | |
| 668 |
|
19년 전 | 1926 | |
| 667 |
|
19년 전 | 1938 | |
| 666 |
|
19년 전 | 1839 | |
| 665 |
|
19년 전 | 2577 | |
| 664 |
|
19년 전 | 8178 | |
| 663 |
|
19년 전 | 2732 | |
| 662 |
|
19년 전 | 2791 | |
| 661 |
|
19년 전 | 3045 | |
| 660 |
|
19년 전 | 2214 | |
| 659 |
|
19년 전 | 2227 | |
| 658 |
|
19년 전 | 2173 | |
| 657 |
|
19년 전 | 2084 | |
| 656 |
|
19년 전 | 2270 | |
| 655 |
|
19년 전 | 2535 | |
| 654 |
|
19년 전 | 3080 | |
| 653 | 19년 전 | 2332 | ||
| 652 | 19년 전 | 1917 | ||
| 651 |
|
19년 전 | 2845 | |
| 650 | 19년 전 | 5012 | ||
| 649 | 19년 전 | 3506 | ||
| 648 | 19년 전 | 3462 | ||
| 647 | 19년 전 | 2976 | ||
| 646 | 19년 전 | 2405 | ||
| 645 | 19년 전 | 1499 | ||
| 644 | 19년 전 | 3141 | ||
| 643 | 19년 전 | 2022 | ||
| 642 |
|
19년 전 | 5391 | |
| 641 | 19년 전 | 2436 | ||
| 640 | 19년 전 | 3435 | ||
| 639 | 19년 전 | 2865 | ||
| 638 | 19년 전 | 1766 | ||
| 637 | 19년 전 | 3880 | ||
| 636 | 19년 전 | 2428 | ||
| 635 | 19년 전 | 2318 | ||
| 634 |
|
19년 전 | 3025 | |
| 633 |
|
19년 전 | 3303 | |
| 632 | 19년 전 | 2505 | ||
| 631 | 19년 전 | 2267 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기