A command-line tool to easily kill processes running on a specified port.

Overview

killport

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 and macOS.

Features

  • Kill processes by port number
  • Supports multiple port numbers
  • Verbosity control
  • Works on Linux and macOS

Installation

Using Homebrew

Run the following command to install killport using Homebrew.

brew tap jkfran/killport
brew install killport

Using install.sh

Run the following command to automatically download and install killport:

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.

Using cargo

Run the following command to install killport using cargo. If you don't have cargo, follow the official Rust installation guide.

cargo install killport

Binary Releases

You can download the binary releases for different architectures from the releases page and manually install them.

Usage

killport [FLAGS] <ports>...

Examples

Kill a single process listening on port 8080:

killport 8080

Kill multiple processes listening on ports 8045, 8046, and 8080:

killport 8045 8046 8080

Flags

-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.

Contributing

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:

  1. Fork the repository on GitHub.
  2. Clone your fork and create a new branch for your feature or bugfix.
  3. Make your changes, following our coding guidelines.
  4. Add tests for your changes and ensure all tests pass.
  5. Commit your changes, following our commit message guidelines.
  6. Push your changes to your fork and create a pull request.

We'll review your pull request and provide feedback or merge your changes.

License

This project is licensed under the MIT License. See the LICENSE file for more information.

You might also like...
Lists Steam applications that have specified a Steam Play compatibility tool

proton-usage Lists Steam applications that have specified a Steam Play compatibility tool. Useful for when you want to remove/uninstall unused compati

A command line utility to easily make dank memes
A command line utility to easily make dank memes

meme-cli A command line utility to easily make dank memes. Yes, really. Installation cargo install meme-cli Alternatively, install from source using g

🧠 A command-line utility for switching git branches more easily. Switch branches interactively or use a fuzzy search to find that long-forgotten branch name.
🧠 A command-line utility for switching git branches more easily. Switch branches interactively or use a fuzzy search to find that long-forgotten branch name.

git-smart-checkout A git command extension for switching git branches more efficiently. About Interactively switch branches or fuzzy search for that f

A lightweight terminal tool to manage processes in Unix machines.

TTV v0.0.1 TTV (term-task-viewer) is a lightweight tool to view and manage active processes in Unix machines. It provides an easy interface with vim-l

This is a command line port of the game Wordle in Rust
This is a command line port of the game Wordle in Rust

Wordle.rs Welcome to Wordle.rs! This is a command line port of the game Wordle in Rust. I built this in order to get more familiar with programming in

A Rust port of the command line program playing with the cutscenes files (USM) from Genshin Impact.

GI-cutscenes : Rust Remix A command line program playing with the cutscene files (USM) from Genshin Impact, reimplemented in Rust. Much like its origi

Pink is a command-line tool inspired by the Unix man command.

Pink is a command-line tool inspired by the Unix man command. It displays custom-formatted text pages in the terminal using a subset of HTML-like tags.

CLI application to run clang-format on a set of files specified using globs in a JSON configuration file.
CLI application to run clang-format on a set of files specified using globs in a JSON configuration file.

run_clang_format CLI application for running clang-format for an existing .clang-format file on a set of files, specified using globs in a .json confi

CLI application to run clang-tidy on a set of files specified using globs in a JSON configuration file.
CLI application to run clang-tidy on a set of files specified using globs in a JSON configuration file.

run-clang-tidy CLI application for running clang-tidy for an existing .clang-tidy file on a set of files, specified using globs in a .json configurati

Comments
  • Add macOS support and UDP port handling

    Add macOS support and UDP port handling

    Description of the changes This PR introduces the following enhancements to the killport utility:

    1. macOS support: The utility now supports macOS in addition to Linux. This has been achieved by implementing a separate module for macOS-specific functionality.
    2. UDP port handling: In addition to TCP ports, killport can now also target processes listening on UDP ports. The utility will terminate processes using both TCP and UDP protocols on the specified ports.

    These improvements make the killport utility more versatile and extend its usage to a wider range of users and use cases.

    opened by jkfran 0
Owner
Francisco Jiménez Cabrera
Francisco Jiménez Cabrera
Command-line HTTP client for sending a POST request to specified URI on each stdin line.

line2httppost Simple tool to read lines from stdin and post each line as separate POST request to a specified URL (TCP connection is reused though). G

Vitaly Shukela 3 Jan 3, 2023
A CLI tool which can help you automatically kill process of your choice. Useful for freeing up memory and CPU usage!

Quickiller There are always programs such as chrome that keep eating up your resources even when closed! The only way to prevent this is to kill all o

Codingsquirrel 1 Dec 8, 2021
a Rust library for running child processes

duct.rs Duct is a library for running child processes. Duct makes it easy to build pipelines and redirect IO like a shell. At the same time, Duct help

Jack O'Connor 633 Dec 30, 2022
A command-line utility which aligns a block of text within the terminal (or a specified number of columns), written in Rust.

align: a command line utility for aligning text. ⭐ Overview Aligns text within the terminal (or a specified number of columns). The text is treated as

Khalil Ouali 6 Aug 11, 2023
verilot (verifiable lottery) is a command line tool for running and verifying one-time lotteries.

verilot verilot (verifiable lottery) is a command line tool for running and verifying one-time lotteries. Install Install Rust and Cargo with Rustup.

Shelby Doolittle 9 Oct 10, 2022
A command line tool for easily generating multiple versions of a configuration file from a single template

MultiConf A command line tool for easily generating multiple versions of a configuration file from a single template. Why? I'm a big fan of the i3 win

Ian Clarke 4 Dec 10, 2022
tmplt is a command-line interface tool that allows you to quickly and easily set up project templates for various programming languages and frameworks

tmplt A User Friendly CLI Tool For Creating New Projects With Templates About tmplt is a command-line tool that lets users quickly create new projects

Humble Penguin 35 Apr 8, 2023
Small command-line tool to switch monitor inputs from command line

swmon Small command-line tool to switch monitor inputs from command line Installation git clone https://github.com/cr1901/swmon cargo install --path .

William D. Jones 5 Aug 20, 2022