How to view network status in Linux with ss utility

ss – another utility to investigate sockets. ss is used to dump socket statistics. It allows showing information similar to netstat.
It can display more TCP and state informations than other tools.

Use

Example

  • display all TCP related network connections
  • display all TCP related network connections that are on listening state
  • display all TCP-related network connections in the listening state and simultaneously display related programs and PIDs
  • show connected sockets from a specific address