killport
is a just for gigs, command-line utility for killing processes listening on specific ports. It's designed to be simple, fast, and effective. Its a simple bash script and works on Linux and macOS.
- Kill processes by port number
- Supports multiple port numbers
- Verbosity control
- Works on Linux and macOS
Run the following command to install killport using Homebrew.
brew tap metacritical/killport
brew install killport
Run the following command to automatically download and install killport
:
curl -L https://bit.ly/3ABTXJR | sh
You can download the binary releases for different architectures from the releases page and manually install them.
kp [FLAGS] <ports>...
Kill a single process listening on port 8080:
kp 8080
Kill multiple processes listening on ports 8045, 8046, and 8080:
kp 8045 8046 8080
-v, --verbose Increase the verbosity level. Use multiple times for more detailed output.
-h, --help Display the help message and exit.
-V, --version Display the version information and exit.
WTFPL (yup thats the license for this.)