리눅스에서 프로세스를 죽이는 방법은 다음과 같습니다.
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
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 830 |
|
19년 전 | 2177 | |
| 829 |
|
19년 전 | 1906 | |
| 828 |
|
19년 전 | 1799 | |
| 827 |
|
19년 전 | 1652 | |
| 826 |
|
19년 전 | 1845 | |
| 825 |
|
19년 전 | 1885 | |
| 824 |
|
19년 전 | 1941 | |
| 823 |
|
19년 전 | 2686 | |
| 822 |
|
19년 전 | 5313 | |
| 821 |
|
19년 전 | 1719 | |
| 820 |
|
19년 전 | 1567 | |
| 819 |
|
19년 전 | 1433 | |
| 818 |
|
19년 전 | 1588 | |
| 817 |
|
19년 전 | 1518 | |
| 816 |
|
19년 전 | 1439 | |
| 815 |
|
19년 전 | 1455 | |
| 814 |
|
19년 전 | 1377 | |
| 813 |
|
19년 전 | 1438 | |
| 812 | 19년 전 | 2813 | ||
| 811 |
pearly
|
19년 전 | 3827 | |
| 810 |
pearly
|
19년 전 | 5203 | |
| 809 |
|
19년 전 | 1372 | |
| 808 |
pearly
|
19년 전 | 4533 | |
| 807 | 19년 전 | 2975 | ||
| 806 |
|
19년 전 | 1490 | |
| 805 |
|
19년 전 | 2686 | |
| 804 |
|
19년 전 | 3614 | |
| 803 |
|
19년 전 | 1792 | |
| 802 |
|
19년 전 | 3788 | |
| 801 |
|
19년 전 | 1877 | |
| 800 | 19년 전 | 3770 | ||
| 799 | 19년 전 | 3430 | ||
| 798 | 19년 전 | 4201 | ||
| 797 | 19년 전 | 4051 | ||
| 796 |
|
19년 전 | 1887 | |
| 795 |
|
19년 전 | 1842 | |
| 794 | 19년 전 | 4271 | ||
| 793 | 19년 전 | 2666 | ||
| 792 | 19년 전 | 2540 | ||
| 791 | 19년 전 | 2391 | ||
| 790 | 19년 전 | 1967 | ||
| 789 | 19년 전 | 2582 | ||
| 788 | 19년 전 | 2201 | ||
| 787 | 19년 전 | 1843 | ||
| 786 | 19년 전 | 1971 | ||
| 785 | 19년 전 | 1441 | ||
| 784 |
|
19년 전 | 1691 | |
| 783 | 19년 전 | 2830 | ||
| 782 |
|
19년 전 | 1947 | |
| 781 | 19년 전 | 3236 | ||
| 780 | 19년 전 | 3144 | ||
| 779 |
|
19년 전 | 2241 | |
| 778 |
|
19년 전 | 1789 | |
| 777 | 19년 전 | 2830 | ||
| 776 | 19년 전 | 2897 | ||
| 775 | 19년 전 | 4011 | ||
| 774 |
|
19년 전 | 1971 | |
| 773 | 19년 전 | 2619 | ||
| 772 | 19년 전 | 2335 | ||
| 771 | 19년 전 | 3464 | ||
| 770 |
|
19년 전 | 1424 | |
| 769 | 19년 전 | 1489 | ||
| 768 | 19년 전 | 1766 | ||
| 767 | 19년 전 | 2202 | ||
| 766 | 19년 전 | 1832 | ||
| 765 | 19년 전 | 1693 | ||
| 764 |
|
19년 전 | 2102 | |
| 763 |
|
19년 전 | 2211 | |
| 762 |
|
19년 전 | 4963 | |
| 761 | 19년 전 | 2326 | ||
| 760 |
|
19년 전 | 3191 | |
| 759 | 19년 전 | 2639 | ||
| 758 |
|
19년 전 | 2405 | |
| 757 | 19년 전 | 4696 | ||
| 756 | 19년 전 | 2560 | ||
| 755 |
|
19년 전 | 2409 | |
| 754 |
|
19년 전 | 1947 | |
| 753 |
|
19년 전 | 1727 | |
| 752 |
pearly
|
19년 전 | 3362 | |
| 751 | 19년 전 | 2330 | ||
| 750 |
|
19년 전 | 6156 | |
| 749 | 19년 전 | 2020 | ||
| 748 |
|
19년 전 | 1897 | |
| 747 |
|
19년 전 | 2704 | |
| 746 |
|
19년 전 | 1809 | |
| 745 | 19년 전 | 2279 | ||
| 744 | 19년 전 | 2106 | ||
| 743 |
|
19년 전 | 3558 | |
| 742 | 19년 전 | 2574 | ||
| 741 | 19년 전 | 2741 | ||
| 740 |
|
19년 전 | 4362 | |
| 739 | 19년 전 | 3544 | ||
| 738 |
|
19년 전 | 2304 | |
| 737 | 19년 전 | 4293 | ||
| 736 | 19년 전 | 3263 | ||
| 735 |
홀로남은자
|
19년 전 | 4128 | |
| 734 |
홀로남은자
|
19년 전 | 2014 | |
| 733 |
홀로남은자
|
19년 전 | 2224 | |
| 732 | 19년 전 | 2138 | ||
| 731 | 19년 전 | 3348 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기