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
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment