terminal.cab

All commands

ss

Topic: Network

Program: ss

Shows which ports the computer listens on.

Package: net

Usage

ss [OPTION]...

Description

Show network sockets. ss -tlnp lists the TCP ports this computer listens on, with their processes.

Options in the simulator

39 more options of the real program, not in the simulator yet
  • -V, --version not in the simulator yet

    Explanation to come

  • -r, --resolve not in the simulator yet

    Explanation to come

  • -B, --bound-inactive not in the simulator yet

    Explanation to come

  • -o, --options not in the simulator yet

    Explanation to come

  • -e, --extended not in the simulator yet

    Explanation to come

  • -m, --memory not in the simulator yet

    Explanation to come

  • -T, --threads not in the simulator yet

    Explanation to come

  • -i, --info not in the simulator yet

    Explanation to come

  • --tipcinfo not in the simulator yet

    Explanation to come

  • -s, --summary not in the simulator yet

    The simulator prints no summary. ss -tuln shows the listening ports.

  • --tos not in the simulator yet

    Explanation to come

  • --cgroup not in the simulator yet

    Explanation to come

  • -b, --bpf not in the simulator yet

    Explanation to come

  • --bpf-maps not in the simulator yet

    Explanation to come

  • --bpf-map-id needs a value not in the simulator yet

    Explanation to come

  • -E, --events not in the simulator yet

    Explanation to come

  • -Z, --context not in the simulator yet

    Explanation to come

  • -z, --contexts not in the simulator yet

    Explanation to come

  • -N, --net needs a value not in the simulator yet

    Explanation to come

  • -4, --ipv4 not in the simulator yet

    Explanation to come

  • -6, --ipv6 not in the simulator yet

    Explanation to come

  • -0, --packet not in the simulator yet

    Explanation to come

  • -M, --mptcp not in the simulator yet

    Explanation to come

  • -S, --sctp not in the simulator yet

    Explanation to come

  • -d, --dccp not in the simulator yet

    Explanation to come

  • -w, --raw not in the simulator yet

    Explanation to come

  • -x, --unix not in the simulator yet

    Explanation to come

  • --tipc not in the simulator yet

    Explanation to come

  • --vsock not in the simulator yet

    Explanation to come

  • --xdp not in the simulator yet

    Explanation to come

  • -f, --family needs a value not in the simulator yet

    Explanation to come

  • -K, --kill not in the simulator yet

    Explanation to come

  • -H, --no-header not in the simulator yet

    Explanation to come

  • -Q, --no-queues not in the simulator yet

    Explanation to come

  • -O, --oneline not in the simulator yet

    Explanation to come

  • --inet-sockopt not in the simulator yet

    Explanation to come

  • -A, --query, --socket needs a value not in the simulator yet

    Explanation to come

  • -D, --diag needs a value not in the simulator yet

    Explanation to come

  • -F, --filter needs a value not in the simulator yet

    Explanation to come

Examples

From the lesson Who listens, and what answers
ss -tlnp
State   Recv-Q   Send-Q     Local Address:Port     Peer Address:Port  Process   
LISTEN  0        4096             0.0.0.0:22            0.0.0.0:*               
LISTEN  0        4096             0.0.0.0:80            0.0.0.0:*               
LISTEN  0        4096           127.0.0.1:8080          0.0.0.0:*     users:(("python3",pid=2114,fd=3))

Try it in the terminal

Where you learn it

Lessons

All commands