netstat -tlnp
Category: Self-Hosting
netstat -tlnp
Show all listening TCP ports and the processes behind them (older alternative to ss)
Lists listening network ports and associated processes. Older tool, not installed by default on modern Ubuntu — use 'ss' instead if available.