Network
The ss command
Lists the connections and ports listening on your machine.
Syntax
ss [-tulpn]Most useful options
-tTCP connections-uUDP connections-lOnly listening ports-pThe process owning each portCopy-ready examples
$ ss -tulpnWhat is listening on my machine$ ss -tOnly TCP connectionsYou can try them in the browser terminal: it does not touch your computer.
Typical mistakes
- Knowing what listens is the first step to closing ports left open.
Related commands
FAQ
What does LISTEN mean?
That a program is waiting for connections on that port.
Learn to actually use it
The basic Linux course takes you from zero to console fluency with 24 self-grading lessons.
Start the free course