cmd kill process

C++
#To list any process listening to the port 8080:
lsof -i:8080

#To kill any process listening to the port 8080:
kill $(lsof -t -i:8080)

#or more violently:
kill -9 $(lsof -t -i:8080)## check and kill used "ports"
netstat -ano | findstr :8080
taskkill /PID <yourid> /F// Kill process by exe name
taskkill /IM "ProcessName.exe" /Ftaskkill /PID 1234netstat -ano | findstr :3000
taskkill /PID "123" /F taskkill /F /PID pid_number
Source

Also in C++: