Show all listening TCP/UDP sockets with process names
ss (socket statistics) is the modern replacement for netstat. -t=TCP, -u=UDP, -l=listening only, -p=process name/PID, -n=no DNS resolution. The first thing to run when checking what services are exposed on a server.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.