| Crates.io | p-kill |
| lib.rs | p-kill |
| version | 0.2.0 |
| created_at | 2023-06-01 13:12:25.336974+00 |
| updated_at | 2023-06-07 12:51:40.050405+00 |
| description | A simple cli tool to kill processes by port |
| homepage | https://github.com/anudeep652/rust-kill-process |
| repository | https://github.com/anudeep652/rust-kill-process |
| max_upload_size | |
| id | 879734 |
| size | 3,992 |
A simple CLI tool to kill a process by port
This is a simple hobby project made by me to gain some experience in working with rust.
I felt exhaused by using kill -9 $(lsof -t -i:PORT) everytime I wanted to kill a process by port, so I made this tool.
clone the repo:
git clone https://github.com/anudeep652/rust-kill-process.git
cd rust-kill-process
cargo run -- PORT
Remember to replace PORT with the port number you want to kill
cargo install --path .
Now you can run anywhere in your terminal like this:
p-kill PORT
'p-kill' is the executable name, you can change it in Cargo.toml and you need to again create an executable.
If you are a rustacean and want to contribute to this project, feel free to open a PR.