리눅스에서 프로세스를 죽이는 방법은 다음과 같습니다.
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년 전 | 404 | ||
| 7929 | 9년 전 | 323 | ||
| 7928 | 9년 전 | 414 | ||
| 7927 | 9년 전 | 329 | ||
| 7926 | 9년 전 | 662 | ||
| 7925 | 9년 전 | 347 | ||
| 7924 | 9년 전 | 335 | ||
| 7923 | 9년 전 | 337 | ||
| 7922 | 9년 전 | 374 | ||
| 7921 | 9년 전 | 395 | ||
| 7920 | 9년 전 | 319 | ||
| 7919 | 9년 전 | 332 | ||
| 7918 | 9년 전 | 487 | ||
| 7917 | 9년 전 | 324 | ||
| 7916 | 9년 전 | 401 | ||
| 7915 | 9년 전 | 400 | ||
| 7914 | 9년 전 | 410 | ||
| 7913 | 9년 전 | 569 | ||
| 7912 | 9년 전 | 415 | ||
| 7911 | 9년 전 | 363 | ||
| 7910 | 9년 전 | 403 | ||
| 7909 | 9년 전 | 503 | ||
| 7908 | 9년 전 | 421 | ||
| 7907 | 9년 전 | 365 | ||
| 7906 | 9년 전 | 389 | ||
| 7905 | 9년 전 | 365 | ||
| 7904 | 9년 전 | 350 | ||
| 7903 | 9년 전 | 343 | ||
| 7902 | 9년 전 | 559 | ||
| 7901 |
|
9년 전 | 727 | |
| 7900 | 9년 전 | 579 | ||
| 7899 | 9년 전 | 375 | ||
| 7898 | 9년 전 | 380 | ||
| 7897 | 9년 전 | 336 | ||
| 7896 | 9년 전 | 357 | ||
| 7895 | 9년 전 | 463 | ||
| 7894 | 9년 전 | 385 | ||
| 7893 | 9년 전 | 332 | ||
| 7892 | 9년 전 | 385 | ||
| 7891 | 9년 전 | 759 | ||
| 7890 | 9년 전 | 1188 | ||
| 7889 | 9년 전 | 743 | ||
| 7888 |
limsy1987
|
9년 전 | 543 | |
| 7887 | 9년 전 | 544 | ||
| 7886 | 9년 전 | 431 | ||
| 7885 | 9년 전 | 400 | ||
| 7884 | 9년 전 | 402 | ||
| 7883 | 9년 전 | 397 | ||
| 7882 | 9년 전 | 446 | ||
| 7881 | 9년 전 | 433 | ||
| 7880 | 9년 전 | 558 | ||
| 7879 | 9년 전 | 457 | ||
| 7878 | 9년 전 | 1211 | ||
| 7877 | 9년 전 | 746 | ||
| 7876 | 9년 전 | 477 | ||
| 7875 | 9년 전 | 555 | ||
| 7874 |
|
9년 전 | 802 | |
| 7873 | 9년 전 | 516 | ||
| 7872 | 9년 전 | 668 | ||
| 7871 | 9년 전 | 476 | ||
| 7870 | 9년 전 | 600 | ||
| 7869 | 9년 전 | 432 | ||
| 7868 | 9년 전 | 437 | ||
| 7867 | 9년 전 | 420 | ||
| 7866 | 9년 전 | 482 | ||
| 7865 | 9년 전 | 447 | ||
| 7864 | 9년 전 | 510 | ||
| 7863 | 9년 전 | 506 | ||
| 7862 | 9년 전 | 462 | ||
| 7861 | 9년 전 | 627 | ||
| 7860 | 9년 전 | 618 | ||
| 7859 | 9년 전 | 406 | ||
| 7858 | 9년 전 | 698 | ||
| 7857 | 9년 전 | 1069 | ||
| 7856 | 9년 전 | 514 | ||
| 7855 | 9년 전 | 747 | ||
| 7854 | 9년 전 | 726 | ||
| 7853 | 9년 전 | 576 | ||
| 7852 | 9년 전 | 504 | ||
| 7851 | 9년 전 | 500 | ||
| 7850 | 9년 전 | 580 | ||
| 7849 | 9년 전 | 355 | ||
| 7848 | 9년 전 | 408 | ||
| 7847 | 9년 전 | 647 | ||
| 7846 | 9년 전 | 451 | ||
| 7845 | 9년 전 | 411 | ||
| 7844 | 9년 전 | 388 | ||
| 7843 | 9년 전 | 409 | ||
| 7842 | 9년 전 | 394 | ||
| 7841 | 9년 전 | 381 | ||
| 7840 | 9년 전 | 404 | ||
| 7839 | 9년 전 | 431 | ||
| 7838 | 9년 전 | 515 | ||
| 7837 | 9년 전 | 353 | ||
| 7836 | 9년 전 | 394 | ||
| 7835 | 9년 전 | 470 | ||
| 7834 |
|
9년 전 | 1189 | |
| 7833 | 9년 전 | 421 | ||
| 7832 | 9년 전 | 410 | ||
| 7831 | 9년 전 | 555 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기