Mac OS X: how to list all open ports running in your machine

In Mac OS X, I do use

netstat -a -p tcp 

Though the ideal one to list all open ports in Mac OS X being opened is

lsof -i -P | grep -i "listen"


Simple command, but hope that helps.

Comments

Popular posts from this blog

LVM: How to remove a volume using pvremove

Using Oracle 11g thru VirtualBox appliance in Mac OS X Lion

Use Shell Editor for Eclipse for editing bash, ksh, csh in Unix/Linux system