Listing open ports on MacOS wafrat I am a software engineer at Google. These days I'm into Angular, Flutter and TensorFlow, both for fun and for work. More posts by wafrat. wafrat 18 Apr 2020 • 1 min read I used to use netstat, but this command outputs a really clean status:sudo lsof -PiTCP -sTCP:LISTEN