how do I stop a running program?
I know I can CTL-Z it and then kill the process.
I am asking how to STOP a program in execution. I know there is a very simple answer but I just cannot recall how to it. TIA -steve |
CTRL-c ?
|
I do not think you know it, you already wrote it: if you need to kill the process then: the command to kill a process is named kill. See man page. Ctrl-Z will not kill the program, it will stop it. It means the execution is suspended, but can be continued later.
|
Thanks!
Quote:
Simple does not mean EASY: Try looking this up in the documentation.... Thanks again -- what would we do without the Brits?! |
If you know the name of the running process, try; pidof "process". Then, if it returns a pid, you can kill it with kill -9 "pid" or killall "proc name". If pidof return nothing, then either the process is not running or you miss spelled the process name. Use
Code:
ps axf -eo pid,ppid,sid,uid,args |
All times are GMT -5. The time now is 07:01 PM. |