ss -lnpt | grep 80

LISTEN  0  128  0.0.0.0:80  0.0.0.0:*  users:(("nginx",pid=1234,fd=6))
  • -l: Lists sockets that are in the “listening” state.
  • -n: Shows numerical addresses/ports instead of resolving them into names (e.g., IP and port instead of domain/service name).
  • -p: Displays the process (PID/Program) associated with each socket.
  • -t: Filters the output to only show TCP sockets.