2008/10/20

[Linux] Force to stop a running program

List all running programs
$ ps -lA

Kill a running program by PID (-9 is force to stop)
$ kill -9 [PID]









SignalNumberMeaning
HUP1控制中的終端/程序中斷
INT2鍵盤的插入指令 (同 Ctrl + C)
QUIT3鍵盤的中斷指令 (同 Ctrl + \)
TERM15程序的終止指令
KILL9程序的強制終止指令
CONT18程序的再啟動指令 (STOP後再重新啟動)
STOP19程序的停止指令 (同 Ctrl+Z)


Some more info: Process Control

沒有留言: