ss
Program: ss
Shows which ports the computer listens on.
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
Examples
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)) Where you learn it
Lessons
- Who listens, and what answers Linux Basics, Module 9: Networking