Equivalent of ctrl c in command to cancel a program

前端 未结 6 1962
渐次进展
渐次进展 2020-12-24 00:29

I am running a long linux program in a remote machine, and I want to stop it, but my problem is that if I use the kill command then the program will exit without saving resu

6条回答
  •  醉梦人生
    2020-12-24 00:54

    I am doing as below way

    killall -2 
    

    or

    kill -2 
    

    I used to forget the the name of signal. i.e SIGINT/SIGKILL here so i am using number for that like killall -2 or killall -9

提交回复
热议问题