리눅스에서 프로세스를 죽이는 방법은 다음과 같습니다.
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
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 7830 | 9년 전 | 420 | ||
| 7829 |
|
9년 전 | 615 | |
| 7828 | 9년 전 | 539 | ||
| 7827 | 9년 전 | 432 | ||
| 7826 | 9년 전 | 434 | ||
| 7825 | 10년 전 | 479 | ||
| 7824 | 10년 전 | 445 | ||
| 7823 | 10년 전 | 383 | ||
| 7822 | 10년 전 | 360 | ||
| 7821 | 10년 전 | 309 | ||
| 7820 | 10년 전 | 348 | ||
| 7819 |
|
10년 전 | 751 | |
| 7818 | 10년 전 | 390 | ||
| 7817 | 10년 전 | 522 | ||
| 7816 | 10년 전 | 408 | ||
| 7815 | 10년 전 | 608 | ||
| 7814 | 10년 전 | 435 | ||
| 7813 | 10년 전 | 376 | ||
| 7812 | 10년 전 | 401 | ||
| 7811 | 10년 전 | 392 | ||
| 7810 | 10년 전 | 565 | ||
| 7809 | 10년 전 | 496 | ||
| 7808 | 10년 전 | 378 | ||
| 7807 | 10년 전 | 404 | ||
| 7806 |
프로그래머7
|
10년 전 | 1334 | |
| 7805 | 10년 전 | 1275 | ||
| 7804 |
zahir1312
|
10년 전 | 779 | |
| 7803 |
|
10년 전 | 1375 | |
| 7802 | 10년 전 | 457 | ||
| 7801 | 10년 전 | 860 | ||
| 7800 | 10년 전 | 1087 | ||
| 7799 | 10년 전 | 556 | ||
| 7798 | 10년 전 | 512 | ||
| 7797 | 10년 전 | 506 | ||
| 7796 | 10년 전 | 354 | ||
| 7795 | 10년 전 | 504 | ||
| 7794 | 10년 전 | 552 | ||
| 7793 | 10년 전 | 1056 | ||
| 7792 | 10년 전 | 474 | ||
| 7791 | 10년 전 | 557 | ||
| 7790 | 10년 전 | 504 | ||
| 7789 |
fbastore
|
10년 전 | 1449 | |
| 7788 | 10년 전 | 545 | ||
| 7787 | 10년 전 | 401 | ||
| 7786 | 10년 전 | 589 | ||
| 7785 | 10년 전 | 584 | ||
| 7784 | 10년 전 | 645 | ||
| 7783 | 10년 전 | 448 | ||
| 7782 | 10년 전 | 491 | ||
| 7781 | 10년 전 | 899 | ||
| 7780 | 10년 전 | 814 | ||
| 7779 | 10년 전 | 775 | ||
| 7778 | 10년 전 | 364 | ||
| 7777 | 10년 전 | 456 | ||
| 7776 | 10년 전 | 460 | ||
| 7775 | 10년 전 | 409 | ||
| 7774 | 10년 전 | 631 | ||
| 7773 | 10년 전 | 382 | ||
| 7772 | 10년 전 | 735 | ||
| 7771 | 10년 전 | 389 | ||
| 7770 | 10년 전 | 644 | ||
| 7769 | 10년 전 | 382 | ||
| 7768 | 10년 전 | 612 | ||
| 7767 | 10년 전 | 1171 | ||
| 7766 | 10년 전 | 492 | ||
| 7765 | 10년 전 | 525 | ||
| 7764 |
잘살아보자
|
10년 전 | 391 | |
| 7763 |
|
10년 전 | 1457 | |
| 7762 |
Tosea
|
10년 전 | 1056 | |
| 7761 | 10년 전 | 648 | ||
| 7760 |
잘살아보자
|
10년 전 | 676 | |
| 7759 |
잘살아보자
|
10년 전 | 508 | |
| 7758 |
잘살아보자
|
10년 전 | 593 | |
| 7757 | 10년 전 | 1246 | ||
| 7756 |
ITBANK
|
10년 전 | 1252 | |
| 7755 | 10년 전 | 1929 | ||
| 7754 | 10년 전 | 1054 | ||
| 7753 | 10년 전 | 885 | ||
| 7752 | 10년 전 | 1393 | ||
| 7751 |
잘살아보자
|
10년 전 | 533 | |
| 7750 |
잘살아보자
|
10년 전 | 478 | |
| 7749 |
잘살아보자
|
10년 전 | 489 | |
| 7748 |
잘살아보자
|
10년 전 | 494 | |
| 7747 |
잘살아보자
|
10년 전 | 588 | |
| 7746 |
잘살아보자
|
10년 전 | 675 | |
| 7745 |
잘살아보자
|
10년 전 | 917 | |
| 7744 |
잘살아보자
|
10년 전 | 416 | |
| 7743 | 10년 전 | 946 | ||
| 7742 |
starbros
|
10년 전 | 840 | |
| 7741 |
잘살아보자
|
10년 전 | 674 | |
| 7740 |
잘살아보자
|
10년 전 | 537 | |
| 7739 |
잘살아보자
|
10년 전 | 465 | |
| 7738 |
잘살아보자
|
10년 전 | 534 | |
| 7737 |
잘살아보자
|
10년 전 | 501 | |
| 7736 |
잘살아보자
|
10년 전 | 523 | |
| 7735 |
잘살아보자
|
10년 전 | 850 | |
| 7734 |
잘살아보자
|
10년 전 | 429 | |
| 7733 |
잘살아보자
|
10년 전 | 546 | |
| 7732 |
잘살아보자
|
10년 전 | 698 | |
| 7731 |
잘살아보자
|
10년 전 | 623 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기