Skip to content

just kill

$ just kill -p 8082

What does it do?

just kill allows you to quickly and easily kill processes that are listening on specific ports. This can be useful if you need to free up a port for a different process, or if you want to stop a process that is no longer needed.

By default, it kills a process listening on port 8080. A custom on port can be set with --port or -p parameter.

To force kill a process, use just kill -9 -p <port> (or just kill /F -p <port> if you are more familiar with Windows taskkill).

If a Docker container is listening on chosen port, instead of killing the Docker process it either stops or kills the running container.