A lightweight system tray application for Linux that helps you find and kill processes using specific network ports.
Inspired by PortKiller for macOS.
- Automatic port discovery - Detects all listening TCP ports instantly
- One-click termination - Kill processes with a single button
- Auto-refresh - Updates every 5 seconds
- Search - Filter by port number or process name
- System tray integration - Quick access from your taskbar
- Modern UI - Dark theme with clean design
Ubuntu/Debian:
sudo apt install python3-gi python3-gi-cairo gir1.2-gtk-3.0 gir1.2-appindicator3-0.1Fedora:
sudo dnf install python3-gobject gtk3 libappindicator-gtk3Arch Linux:
sudo pacman -S python-gobject gtk3 libappindicator-gtk3git clone https://github.com/DGouron/linux-port-killer.git
cd linux-port-killer
./install.shThe installer will:
- Copy the application to
/opt/linux-port-killer/ - Add "Port Killer" to your application menu
- Create a desktop shortcut
You can now launch Port Killer from:
- Your application menu (search "Port Killer")
- The desktop shortcut
- Terminal:
/opt/linux-port-killer/run.sh
cd linux-port-killer
./uninstall.sh- Launch the application - the window opens automatically
- Browse the list of listening ports
- Use the search bar to filter by port number or process name
- Click "Kill" to terminate a process
- The list auto-refreshes every 5 seconds
The app also runs in your system tray for quick access.
Some system processes require root privileges to kill. If you see a permission error, you can:
sudo /opt/linux-port-killer/run.shRun directly from source:
cd linux-port-killer
./run.shlinux-port-killer/
├── src/
│ ├── __init__.py
│ ├── main.py # GTK UI and system tray
│ └── port_scanner.py # Port detection via ss command
├── assets/
│ └── linux-port-killer.svg
├── linux-port-killer.desktop
├── install.sh
├── uninstall.sh
├── run.sh
└── README.md
MIT