How do I stop bash script from running in the background?

Nguyên Lê

New member
How do I stop bash script from running in the background?
Answer
Assuming it’s running in the background, under your user id: use ps to find the command’s PID. Then use kill [PID] to stop it. If kill by itself doesn’t do the job, do kill -9 [PID] . If it’s running in the foreground, Ctrl-C (Control C) should stop it.
 

Tìm kiếm

Back
Top