Shangrila
Mind stream
Friday, March 09, 2012
Linux handling of sockets and open files
# kill all processes with open TCP sockets
kill -9 `lsof | grep ESTABLISHED | awk '{print $2}'`
# kill processes by port number of the TCP socket
fuser -k 22/tcp
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)