Port

1 min read

See more details to find the PIDs on Linux

sudo lsof -i tcp:80

To limit to sockets that are listening on port 80

sudo lsof -i tcp:80 -s tcp:listen

To kill them automatically on Linux

sudo lsof -t -i tcp:80 -s tcp:listen | sudo xargs kill
Orestis Pantazos

Orestis Pantazos

DevOps Engineer