how to stop script that is running in linux terminal code example Example: linux stop running script ps kill [pid] // if the above does not work kill -9 [pid]