kill-this-port
is a Python utility to quickly identify and kill processes running on a specified port. It is ideal for developers managing networked applications who often encounter port conflicts.
- Check Port Usage: View which processes are using a specific port.
- Kill Processes: Safely terminate processes occupying a port.
- Force Kill: Use a forceful approach to stop stubborn processes.
Install the utility using pip:
pip install kill-this-port
-
Check Port Usage:
checkport [port]
Example:
checkport 8000
-
Kill Process by Port:
killport [port]
Example:
killport 8000
-
Force Kill Process by Port:
killport --force [port]
Example:
killport --f 8000
To check port 3000
usage:
checkport 3000
To kill the process using port 3000
:
killport 3000
To forcefully kill the process:
killport --force 3000
Aaditya Kanjolia
GitHub: aadityakanjolia4