how to kill process running on pid code example Example 1: kill a process with pid kill -9 PID # kill -9 94228 Example 2: how to kill process sudo kill <PID>