how to kill pid process code example Example 1: kill a process with pid kill -9 PID # kill -9 94228 Example 2: kill process in win by pid kill task by pid