리눅스에서 프로세스를 죽이는 방법은 다음과 같습니다.
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
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 7330 | 11년 전 | 1693 | ||
| 7329 | 11년 전 | 941 | ||
| 7328 | 11년 전 | 2235 | ||
| 7327 | 11년 전 | 1726 | ||
| 7326 | 11년 전 | 3825 | ||
| 7325 | 11년 전 | 2285 | ||
| 7324 | 11년 전 | 4530 | ||
| 7323 |
호식이와미돌
|
11년 전 | 1306 | |
| 7322 |
호식이와미돌
|
11년 전 | 1157 | |
| 7321 | 11년 전 | 1798 | ||
| 7320 | 11년 전 | 1770 | ||
| 7319 | 11년 전 | 1332 | ||
| 7318 |
|
11년 전 | 988 | |
| 7317 |
멋진남자임
|
11년 전 | 1625 | |
| 7316 |
잘살아보자
|
11년 전 | 998 | |
| 7315 | 11년 전 | 1117 | ||
| 7314 | 11년 전 | 1328 | ||
| 7313 |
잘살아보자
|
11년 전 | 1135 | |
| 7312 | 11년 전 | 893 | ||
| 7311 |
사랑한데이
|
11년 전 | 2085 | |
| 7310 |
잘살아보자
|
11년 전 | 1900 | |
| 7309 |
잘살아보자
|
11년 전 | 3061 | |
| 7308 |
잘살아보자
|
11년 전 | 1028 | |
| 7307 |
잘살아보자
|
11년 전 | 787 | |
| 7306 | 11년 전 | 886 | ||
| 7305 |
잘살아보자
|
11년 전 | 2760 | |
| 7304 | 11년 전 | 1045 | ||
| 7303 | 11년 전 | 1240 | ||
| 7302 | 11년 전 | 750 | ||
| 7301 | 11년 전 | 1534 | ||
| 7300 |
mijaya
|
11년 전 | 1507 | |
| 7299 | 11년 전 | 923 | ||
| 7298 | 11년 전 | 1106 | ||
| 7297 | 11년 전 | 778 | ||
| 7296 | 11년 전 | 747 | ||
| 7295 | 11년 전 | 1574 | ||
| 7294 | 11년 전 | 922 | ||
| 7293 | 11년 전 | 820 | ||
| 7292 | 11년 전 | 912 | ||
| 7291 |
잘살아보자
|
11년 전 | 1099 | |
| 7290 |
잘살아보자
|
11년 전 | 766 | |
| 7289 | 11년 전 | 811 | ||
| 7288 |
잘살아보자
|
11년 전 | 1338 | |
| 7287 | 11년 전 | 842 | ||
| 7286 |
잘살아보자
|
11년 전 | 1341 | |
| 7285 | 11년 전 | 834 | ||
| 7284 | 11년 전 | 989 | ||
| 7283 | 11년 전 | 1014 | ||
| 7282 | 11년 전 | 783 | ||
| 7281 | 11년 전 | 818 | ||
| 7280 | 11년 전 | 1055 | ||
| 7279 | 11년 전 | 1977 | ||
| 7278 | 11년 전 | 819 | ||
| 7277 | 11년 전 | 828 | ||
| 7276 | 11년 전 | 765 | ||
| 7275 | 11년 전 | 1189 | ||
| 7274 | 11년 전 | 828 | ||
| 7273 | 11년 전 | 752 | ||
| 7272 | 11년 전 | 1069 | ||
| 7271 | 11년 전 | 1401 | ||
| 7270 | 11년 전 | 1028 | ||
| 7269 | 11년 전 | 958 | ||
| 7268 | 11년 전 | 998 | ||
| 7267 | 11년 전 | 1840 | ||
| 7266 | 11년 전 | 902 | ||
| 7265 | 11년 전 | 961 | ||
| 7264 |
잘살아보자
|
11년 전 | 2723 | |
| 7263 |
잘살아보자
|
11년 전 | 2265 | |
| 7262 |
잘살아보자
|
11년 전 | 1145 | |
| 7261 |
잘살아보자
|
11년 전 | 1637 | |
| 7260 |
잘살아보자
|
11년 전 | 1257 | |
| 7259 | 11년 전 | 1171 | ||
| 7258 |
잘살아보자
|
11년 전 | 1304 | |
| 7257 |
잘살아보자
|
11년 전 | 1901 | |
| 7256 | 11년 전 | 950 | ||
| 7255 |
그누5입문
|
11년 전 | 1952 | |
| 7254 | 11년 전 | 2172 | ||
| 7253 |
|
11년 전 | 869 | |
| 7252 | 11년 전 | 1009 | ||
| 7251 | 11년 전 | 723 | ||
| 7250 | 11년 전 | 1694 | ||
| 7249 | 11년 전 | 1553 | ||
| 7248 |
sogo87
|
11년 전 | 1048 | |
| 7247 | 11년 전 | 940 | ||
| 7246 | 11년 전 | 710 | ||
| 7245 |
잘살아보자
|
11년 전 | 1086 | |
| 7244 | 11년 전 | 1534 | ||
| 7243 |
presee
|
11년 전 | 604 | |
| 7242 |
sogo87
|
11년 전 | 791 | |
| 7241 | 11년 전 | 900 | ||
| 7240 |
브라이언2
|
11년 전 | 913 | |
| 7239 |
|
11년 전 | 1130 | |
| 7238 | 11년 전 | 2633 | ||
| 7237 |
잘살아보자
|
11년 전 | 2276 | |
| 7236 |
dethos79
|
11년 전 | 1845 | |
| 7235 |
멋진남자임
|
11년 전 | 1409 | |
| 7234 | 11년 전 | 1352 | ||
| 7233 | 11년 전 | 2325 | ||
| 7232 | 11년 전 | 1601 | ||
| 7231 | 11년 전 | 2788 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기