4 points | by cnord an hour ago
4 comments
netstat and/or lsof will normally take care of that, but sure, everyone makes their own tools these days!
what's the go-to command from your shell history to do that with netstat? :)
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.
Wrote a script with `lsof` + `ps` to see which agents are using which ports. Might be interesting to throw in your dotfiles!
netstat and/or lsof will normally take care of that, but sure, everyone makes their own tools these days!
what's the go-to command from your shell history to do that with netstat? :)
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.
Wrote a script with `lsof` + `ps` to see which agents are using which ports. Might be interesting to throw in your dotfiles!