List open or listening ports

MacOS

1
lsof -nP -i4TCP

RedHat/Centos7

1
netstat -tulpn
This entry was posted in Bash, Operating System. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*


five × = 20

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>