News for hackers. Stuff that matters.
Re:A Unix Utility to Know About: lsof (2009) by smhenderson on Friday August 26, 2016 @09:24AM (#12366019)
I find myself using lsof for it's ability to show me what TCP sockets are in use more than what actual files are open.

lsof | grep TCP

Re:A Unix Utility to Know About: lsof (2009) by Terr_ on Friday August 26, 2016 @04:56PM (#12369242)
For that I often use:

netstat --ip -a -p

Those particular options mean to show just IP ports (UDP/TCP), in all statuses (active, listening) and to display the local process which is involved.