ss

Linux · Network · available in the simulator

What it does

Dumps socket statistics and network connections.

Syntax

ss [opciones] [filtro]

Options and parameters

  • -t

    Displays TCP sockets.

  • -u

    Displays UDP sockets.

  • -l

    Displays only listening sockets.

    ss -tuln
  • -n

    Does not resolve service names or hostnames.

  • -p

    Shows the process using socket.

  • -a

    Displays all sockets, both listening and non-listening.

Usage examples

  • ss -tulpn
  • ss -tuln
Practise ss

Related commands