3 ms·
Yeet: Kill the Process on Your Port
- lbhdc 4y agoWhat advantage does this have over fuser? fuser -k 8080/tcp
- DougMerritt 4y agoThe "-k" flag apparently is not POSIX, and is not standard on GNU, AFAIK. In any case the linked FAQ has an amusing overall response to such questions: > FAQ > Why yeet instead of sudo kill -9 $(sudo lsof -t -i:3000)? > You should probably use that other command instead. But if you’re lazy and can’t remember it without stack exchange, yeet will get the job done. > > Why would I ever use yeet? Shouldn’t this be like a two line shell script? > Yes. > > Why would I ever use yeet? Can’t I just alias that lsof command instead? > Yes. > > Why is yeet written in Rust? Wouldn’t $OTHER_LANGUAGE be better? > Yes. > > Aren’t you a horrible person for suggesting that anyone pipe curl into sudo sh? > Yes.
- lbhdc 4y agoI didn't realize `-k` wasn't posix, good to know.
- DougMerritt 4y agoIs it just me, or is there no way on the linked page to get this thing?
- DougMerritt 4y agoIt was just me, I was blind to the instructions. Source is https://github.com/Robert-Cunningham/yeet-rs https://github.com/Robert-Cunningham/yeet-rs