Netstat
First published June 10, 2016 • Last modified on July 18, 2026 • 1 min read • 12 wordsTo list all ports that a server is listening to:sudo netstat -plnt
sudo netstat -plnt
sudo netstat -plnt