5 comments

[ 2.5 ms ] story [ 25.2 ms ] thread
What advantage does this have over fuser?

    fuser -k 8080/tcp
The "-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.

I didn't realize `-k` wasn't posix, good to know.