리눅스에서 프로세스를 죽이는 방법은 다음과 같습니다.
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
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 430 | 19년 전 | 4122 | ||
| 429 | 19년 전 | 3318 | ||
| 428 | 19년 전 | 4139 | ||
| 427 | 19년 전 | 3487 | ||
| 426 | 19년 전 | 3110 | ||
| 425 | 19년 전 | 3423 | ||
| 424 | 19년 전 | 2446 | ||
| 423 | 19년 전 | 2872 | ||
| 422 | 19년 전 | 2360 | ||
| 421 | 19년 전 | 3714 | ||
| 420 | 19년 전 | 4751 | ||
| 419 | 19년 전 | 3821 | ||
| 418 |
|
19년 전 | 1758 | |
| 417 | 19년 전 | 2761 | ||
| 416 | 19년 전 | 2402 | ||
| 415 | 19년 전 | 2612 | ||
| 414 | 19년 전 | 4426 | ||
| 413 |
|
19년 전 | 2619 | |
| 412 | 19년 전 | 3062 | ||
| 411 |
|
19년 전 | 2999 | |
| 410 |
|
19년 전 | 3704 | |
| 409 |
|
19년 전 | 3650 | |
| 408 |
|
19년 전 | 1868 | |
| 407 | 19년 전 | 2241 | ||
| 406 | 19년 전 | 2801 | ||
| 405 | 19년 전 | 2472 | ||
| 404 | 19년 전 | 4321 | ||
| 403 | 19년 전 | 3310 | ||
| 402 |
NeoGenesis
|
19년 전 | 4108 | |
| 401 | 19년 전 | 2617 | ||
| 400 |
|
19년 전 | 2509 | |
| 399 | 19년 전 | 2970 | ||
| 398 | 19년 전 | 2504 | ||
| 397 | 19년 전 | 2797 | ||
| 396 | 19년 전 | 2502 | ||
| 395 | 19년 전 | 3204 | ||
| 394 | 19년 전 | 1744 | ||
| 393 | 19년 전 | 3004 | ||
| 392 | 19년 전 | 2281 | ||
| 391 | 19년 전 | 2187 | ||
| 390 | 19년 전 | 2298 | ||
| 389 | 19년 전 | 2655 | ||
| 388 | 19년 전 | 2200 | ||
| 387 | 19년 전 | 4491 | ||
| 386 |
|
19년 전 | 2699 | |
| 385 |
|
19년 전 | 2504 | |
| 384 | 19년 전 | 3037 | ||
| 383 | 19년 전 | 3069 | ||
| 382 | 19년 전 | 3122 | ||
| 381 |
|
19년 전 | 2646 | |
| 380 |
|
19년 전 | 3030 | |
| 379 | 19년 전 | 2555 | ||
| 378 | 19년 전 | 2223 | ||
| 377 | 19년 전 | 2788 | ||
| 376 | 19년 전 | 2476 | ||
| 375 |
|
19년 전 | 2571 | |
| 374 | 19년 전 | 3830 | ||
| 373 | 19년 전 | 3284 | ||
| 372 | 19년 전 | 5004 | ||
| 371 |
세은아빠2
|
19년 전 | 2424 | |
| 370 | 19년 전 | 4507 | ||
| 369 | 19년 전 | 3117 | ||
| 368 | 19년 전 | 2918 | ||
| 367 | 19년 전 | 3744 | ||
| 366 | 19년 전 | 2668 | ||
| 365 | 19년 전 | 3754 | ||
| 364 | 19년 전 | 4025 | ||
| 363 | 19년 전 | 3460 | ||
| 362 | 19년 전 | 3496 | ||
| 361 | 19년 전 | 4117 | ||
| 360 |
hwatta
|
19년 전 | 2377 | |
| 359 | 19년 전 | 5120 | ||
| 358 | 19년 전 | 3668 | ||
| 357 | 19년 전 | 2613 | ||
| 356 |
sdesign1s
|
20년 전 | 2294 | |
| 355 | 20년 전 | 2771 | ||
| 354 | 20년 전 | 3035 | ||
| 353 | 20년 전 | 2804 | ||
| 352 |
|
20년 전 | 5784 | |
| 351 |
|
20년 전 | 2720 | |
| 350 |
|
20년 전 | 4306 | |
| 349 |
hwatta
|
20년 전 | 2194 | |
| 348 | 20년 전 | 7318 | ||
| 347 | 20년 전 | 2422 | ||
| 346 | 20년 전 | 3517 | ||
| 345 | 20년 전 | 4323 | ||
| 344 | 20년 전 | 2662 | ||
| 343 | 20년 전 | 3930 | ||
| 342 | 20년 전 | 3080 | ||
| 341 | 20년 전 | 4109 | ||
| 340 |
|
20년 전 | 5161 | |
| 339 |
|
20년 전 | 4247 | |
| 338 | 20년 전 | 5894 | ||
| 337 | 20년 전 | 2054 | ||
| 336 |
|
20년 전 | 3342 | |
| 335 |
|
20년 전 | 3560 | |
| 334 |
|
20년 전 | 2954 | |
| 333 |
hwatta
|
20년 전 | 2458 | |
| 332 | 20년 전 | 4666 | ||
| 331 | 20년 전 | 2291 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기