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

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

pdftotext not found in CentOS