리눅스에서 프로세스를 죽이는 방법은 다음과 같습니다.
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
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 7130 | 11년 전 | 2293 | ||
| 7129 | 11년 전 | 695 | ||
| 7128 |
senseme
|
11년 전 | 1261 | |
| 7127 | 11년 전 | 1143 | ||
| 7126 | 11년 전 | 793 | ||
| 7125 | 11년 전 | 2936 | ||
| 7124 | 11년 전 | 1409 | ||
| 7123 |
잘살아보자
|
11년 전 | 1269 | |
| 7122 |
잘살아보자
|
11년 전 | 666 | |
| 7121 |
잘살아보자
|
11년 전 | 2997 | |
| 7120 |
잘살아보자
|
11년 전 | 2890 | |
| 7119 |
잘살아보자
|
11년 전 | 716 | |
| 7118 |
잘살아보자
|
11년 전 | 3415 | |
| 7117 |
잘살아보자
|
11년 전 | 835 | |
| 7116 | 11년 전 | 720 | ||
| 7115 | 11년 전 | 1008 | ||
| 7114 | 11년 전 | 818 | ||
| 7113 | 11년 전 | 635 | ||
| 7112 | 11년 전 | 1056 | ||
| 7111 | 11년 전 | 1777 | ||
| 7110 | 11년 전 | 1011 | ||
| 7109 |
버섯먹은나
|
11년 전 | 772 | |
| 7108 | 11년 전 | 611 | ||
| 7107 | 11년 전 | 2385 | ||
| 7106 | 11년 전 | 1939 | ||
| 7105 | 11년 전 | 2472 | ||
| 7104 | 11년 전 | 1403 | ||
| 7103 |
|
11년 전 | 2676 | |
| 7102 | 11년 전 | 3099 | ||
| 7101 | 11년 전 | 4427 | ||
| 7100 | 11년 전 | 5778 | ||
| 7099 | 11년 전 | 2121 | ||
| 7098 | 11년 전 | 1698 | ||
| 7097 | 11년 전 | 1436 | ||
| 7096 | 11년 전 | 1102 | ||
| 7095 |
잘살아보자
|
11년 전 | 842 | |
| 7094 |
잘살아보자
|
11년 전 | 1030 | |
| 7093 |
잘살아보자
|
11년 전 | 909 | |
| 7092 |
잘살아보자
|
11년 전 | 1393 | |
| 7091 |
잘살아보자
|
11년 전 | 2190 | |
| 7090 |
잘살아보자
|
11년 전 | 864 | |
| 7089 | 11년 전 | 1043 | ||
| 7088 | 11년 전 | 1700 | ||
| 7087 | 11년 전 | 1392 | ||
| 7086 | 11년 전 | 1280 | ||
| 7085 |
|
11년 전 | 1208 | |
| 7084 | 11년 전 | 1130 | ||
| 7083 | 11년 전 | 3480 | ||
| 7082 | 11년 전 | 1125 | ||
| 7081 | 11년 전 | 1723 | ||
| 7080 | 11년 전 | 1996 | ||
| 7079 | 11년 전 | 1303 | ||
| 7078 | 11년 전 | 1284 | ||
| 7077 | 11년 전 | 1275 | ||
| 7076 | 11년 전 | 740 | ||
| 7075 | 11년 전 | 1141 | ||
| 7074 |
네이비칼라
|
11년 전 | 1486 | |
| 7073 | 11년 전 | 1452 | ||
| 7072 |
|
11년 전 | 822 | |
| 7071 | 11년 전 | 1168 | ||
| 7070 | 11년 전 | 924 | ||
| 7069 | 11년 전 | 1681 | ||
| 7068 | 11년 전 | 1323 | ||
| 7067 |
TPSint
|
11년 전 | 701 | |
| 7066 | 11년 전 | 2137 | ||
| 7065 | 11년 전 | 6620 | ||
| 7064 | 11년 전 | 1276 | ||
| 7063 | 11년 전 | 1122 | ||
| 7062 | 11년 전 | 1052 | ||
| 7061 | 11년 전 | 897 | ||
| 7060 | 11년 전 | 1434 | ||
| 7059 | 11년 전 | 833 | ||
| 7058 |
EngineMan
|
11년 전 | 3386 | |
| 7057 | 11년 전 | 1232 | ||
| 7056 | 11년 전 | 1628 | ||
| 7055 | 11년 전 | 996 | ||
| 7054 | 11년 전 | 2631 | ||
| 7053 |
네이비칼라
|
11년 전 | 1270 | |
| 7052 | 11년 전 | 2557 | ||
| 7051 | 11년 전 | 1922 | ||
| 7050 | 11년 전 | 2438 | ||
| 7049 | 11년 전 | 1377 | ||
| 7048 | 11년 전 | 2512 | ||
| 7047 | 11년 전 | 1330 | ||
| 7046 | 11년 전 | 1012 | ||
| 7045 | 11년 전 | 1037 | ||
| 7044 | 11년 전 | 5425 | ||
| 7043 | 11년 전 | 1209 | ||
| 7042 | 11년 전 | 767 | ||
| 7041 |
열라뽕똬이
|
11년 전 | 743 | |
| 7040 | 11년 전 | 1093 | ||
| 7039 | 11년 전 | 1439 | ||
| 7038 | 11년 전 | 1856 | ||
| 7037 | 11년 전 | 2164 | ||
| 7036 | 11년 전 | 1074 | ||
| 7035 | 11년 전 | 1392 | ||
| 7034 | 11년 전 | 1335 | ||
| 7033 |
열라뽕똬이
|
11년 전 | 983 | |
| 7032 | 11년 전 | 736 | ||
| 7031 | 11년 전 | 2168 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기