PDA

View Full Version : netstat(1)



arijarot
November 22nd, 2007, 10:45 PM
On netstat(8 ), to show the PID and program name I use
netstat -p. I looked at the man for netstat(1) (on os x 10.4) but can't find the equivalent or similar command. Does anyone know what if there is such a thing?

stmiller
November 23rd, 2007, 09:12 PM
Yeah weird BSD. Try this in OS X to get something similar:


sudo lsof -i -P

arijarot
November 23rd, 2007, 09:22 PM
Yeah weird BSD. Try this in OS X to get something similar:


sudo lsof -i -P

Seems promising. Thanks a lot.