Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
ventana
· 3mo ago · 0 comments
netstat and/or lsof will normally take care of that, but sure, everyone makes their own tools these days!
Comments
[–]
cnord
3mo ago
what's the go-to command from your shell history to do that with netstat? :)
[–]
ventana
OP
3mo ago
On Linux, that would be netstat -lpn (from my memory, not from the shell history) :) On Mac, netstat won't show the pids, so it would be lsof.