#process #port #find #kill #cli #pid

app ppk

find the port, and kill its process!

2 releases

0.1.1 Apr 23, 2023
0.1.0 Apr 23, 2023

#731 in Unix APIs

21 downloads per month

MIT license

5KB
73 lines

killport

Find the port, and kill it!

Usage

Crate Installation

❯ cargo install ppk

❯ ppk
Usage: ppk <port>

❯ sudo ppk 2222

Run from source

# from source
❯ sudo cargo run -- 2222
Port 2222 is listening.
TCP 2222: [71064]
Found matching command: Process { pid: 71064, create_time: 1682278718.446401s, busy: 97.469151ms, instant: Instant { t: 3989048305352067 } }
Got 71064
Process 71064 terminated

Dependencies

~3.5MB
~85K SLoC