utf9k

Something to think about: What if NASA was the result of a typo in a government memo proposing "Spice exploration"?

How can I inspect socket connection states

In which I kill some stubborn connections

Published
Tags

Often times, it can be useful to inspect the state of socket connections made by applications.

You can use the tool ss to inspect and even kill connections.

$ ss # See a list of all sockets
$ ss -t -p # See all TCP sockets with process information
$ ss -K -t '( dport = :6514 )' # Kill all TCP connections open to destination port 6514