how to kill pid code example
Example 1: taskkill in cmd
taskkill /f /im notepad.exe /t
taskkill /f /im chrome.exe /t
Example 2: cmd kill process by pid
## check and kill used "ports"
netstat -ano | findstr :8080
taskkill /PID <yourid> /F
Example 3: kill a process with pid
kill -9 PID # kill -9 94228
Example 4: kill pid
Find PID of process to kill with:
ps ax
Then just specify "kill PID" command as for example:
kill 16320
kill -9 16320 #Force kill in case process is not answering.
Example 5: kill pid
lsof -i:3000
sudo kill 9 <PID>
Example 6: cmd kill pid
taskkill /F /PID pid_number