This shell script allows users to find and kill processes using a specific port on a Linux system.
The script performs the following actions:
- Prompts the user for a port number.
- Finds processes using the specified port.
- Displays information about the found processes.
- Asks for user confirmation before killing the processes.
- If confirmed, forcefully terminates the processes using the specified port.
- This script is designed for Linux systems.
- The
lsof
command must be installed on your system.
- Clone this repository or just download the file.
- Make the script executable:
chmod +x killport.sh
- Run the script:
./killport.sh
- Follow the on-screen prompts.
This script uses the -9
signal to forcefully terminate processes. Use with caution, as this can lead to data loss or system instability if critical processes are terminated.
This script is provided "as is", without warranty of any kind. Use at your own risk.
Feel free to fork this repository and submit pull requests for any improvements or bug fixes.
For issues, questions, or contributions, please open an issue in the GitHub repository.