killport
is a command-line utility for killing processes listening on specific ports. It's designed to be simple, fast, and effective. The tool is built with Rust and works on Linux.
Run the following command to automatically download and install killport
:
sh
curl -sL https://bit.ly/killport | sh
Don't forget to add $HOME/.local/bin
to your PATH
environment variable, if it's not already present.
Clone the repository:
sh
git clone https://github.com/jkfran/killport.git
Change to the killport directory:
sh
cd killport
Build and install the binary:
sh
cargo build --release
cp target/release/killport $HOME/.local/bin/
You can download the binary releases for different architectures from the releases page and manually install them.
sh
killport [FLAGS] <ports>...
Kill a single process listening on port 8080:
sh
killport 8080
Kill multiple processes listening on ports 8045, 8046, and 8080:
sh
killport 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.
We welcome contributions to the killport project! Before you start, please read our Code of Conduct and the Contributing Guidelines.
To contribute, follow these steps:
We'll review your pull request and provide feedback or merge your changes.
This project is licensed under the MIT License. See the LICENSE file for more information.