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

Using sed with backreference as the replacement pattern

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

LVM: How to remove a volume using pvremove