리눅스에서 프로세스를 죽이는 방법은 다음과 같습니다.
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
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 7930 | 9년 전 | 384 | ||
| 7929 | 9년 전 | 284 | ||
| 7928 | 9년 전 | 390 | ||
| 7927 | 9년 전 | 312 | ||
| 7926 | 9년 전 | 652 | ||
| 7925 | 9년 전 | 329 | ||
| 7924 | 9년 전 | 311 | ||
| 7923 | 9년 전 | 330 | ||
| 7922 | 9년 전 | 349 | ||
| 7921 | 9년 전 | 382 | ||
| 7920 | 9년 전 | 303 | ||
| 7919 | 9년 전 | 322 | ||
| 7918 | 9년 전 | 479 | ||
| 7917 | 9년 전 | 322 | ||
| 7916 | 9년 전 | 390 | ||
| 7915 | 9년 전 | 385 | ||
| 7914 | 9년 전 | 393 | ||
| 7913 | 9년 전 | 527 | ||
| 7912 | 9년 전 | 391 | ||
| 7911 | 9년 전 | 339 | ||
| 7910 | 9년 전 | 376 | ||
| 7909 | 9년 전 | 480 | ||
| 7908 | 9년 전 | 389 | ||
| 7907 | 9년 전 | 339 | ||
| 7906 | 9년 전 | 358 | ||
| 7905 | 9년 전 | 341 | ||
| 7904 | 9년 전 | 317 | ||
| 7903 | 9년 전 | 318 | ||
| 7902 | 9년 전 | 529 | ||
| 7901 |
|
9년 전 | 722 | |
| 7900 | 9년 전 | 554 | ||
| 7899 | 9년 전 | 356 | ||
| 7898 | 9년 전 | 358 | ||
| 7897 | 9년 전 | 310 | ||
| 7896 | 9년 전 | 340 | ||
| 7895 | 9년 전 | 442 | ||
| 7894 | 9년 전 | 362 | ||
| 7893 | 9년 전 | 303 | ||
| 7892 | 9년 전 | 357 | ||
| 7891 | 9년 전 | 732 | ||
| 7890 | 9년 전 | 1182 | ||
| 7889 | 9년 전 | 738 | ||
| 7888 |
limsy1987
|
9년 전 | 532 | |
| 7887 | 9년 전 | 521 | ||
| 7886 | 9년 전 | 410 | ||
| 7885 | 9년 전 | 380 | ||
| 7884 | 9년 전 | 383 | ||
| 7883 | 9년 전 | 375 | ||
| 7882 | 9년 전 | 399 | ||
| 7881 | 9년 전 | 411 | ||
| 7880 | 9년 전 | 537 | ||
| 7879 | 9년 전 | 433 | ||
| 7878 | 9년 전 | 1181 | ||
| 7877 | 9년 전 | 726 | ||
| 7876 | 9년 전 | 455 | ||
| 7875 | 9년 전 | 533 | ||
| 7874 |
|
9년 전 | 790 | |
| 7873 | 9년 전 | 491 | ||
| 7872 | 9년 전 | 644 | ||
| 7871 | 9년 전 | 459 | ||
| 7870 | 9년 전 | 588 | ||
| 7869 | 9년 전 | 402 | ||
| 7868 | 9년 전 | 406 | ||
| 7867 | 9년 전 | 400 | ||
| 7866 | 9년 전 | 465 | ||
| 7865 | 9년 전 | 418 | ||
| 7864 | 9년 전 | 481 | ||
| 7863 | 9년 전 | 478 | ||
| 7862 | 9년 전 | 446 | ||
| 7861 | 9년 전 | 608 | ||
| 7860 | 9년 전 | 603 | ||
| 7859 | 9년 전 | 383 | ||
| 7858 | 9년 전 | 683 | ||
| 7857 | 9년 전 | 1041 | ||
| 7856 | 9년 전 | 493 | ||
| 7855 | 9년 전 | 720 | ||
| 7854 | 9년 전 | 706 | ||
| 7853 | 9년 전 | 560 | ||
| 7852 | 9년 전 | 480 | ||
| 7851 | 9년 전 | 468 | ||
| 7850 | 9년 전 | 564 | ||
| 7849 | 9년 전 | 332 | ||
| 7848 | 9년 전 | 383 | ||
| 7847 | 9년 전 | 608 | ||
| 7846 | 9년 전 | 430 | ||
| 7845 | 9년 전 | 386 | ||
| 7844 | 9년 전 | 373 | ||
| 7843 | 9년 전 | 387 | ||
| 7842 | 9년 전 | 376 | ||
| 7841 | 9년 전 | 363 | ||
| 7840 | 9년 전 | 372 | ||
| 7839 | 9년 전 | 412 | ||
| 7838 | 9년 전 | 493 | ||
| 7837 | 9년 전 | 334 | ||
| 7836 | 9년 전 | 374 | ||
| 7835 | 9년 전 | 451 | ||
| 7834 |
|
9년 전 | 1176 | |
| 7833 | 9년 전 | 391 | ||
| 7832 | 9년 전 | 393 | ||
| 7831 | 9년 전 | 527 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기