Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'View programs' connections (open sockets)' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
View programs' connections (open sockets)
Authored by: msk on Mar 21, '05 02:32:04PM

lsof -r -i TCP -i UDP

and

sockstat

generate completely different output. Big difference between sockets and ports.



[ Reply to This | # ]
View programs' connections (open sockets)
Authored by: hrbrmstr on Mar 21, '05 04:00:02PM

they both provide the same info with the correct options. I listed three (for brevity). lsof shows all file descriptors...socket==file descriptor. so, in fact, lsof is a more robust tool.

lsof rocks. folks who can't type "man lsof" before posting replies don't...

---
Mind the gap...



[ Reply to This | # ]