Linux

netstat

SafeConnections (legacy)

netstat -tulnp

Lists listeners and connections. ss supersedes it, but old servers and runbooks still speak netstat.

Examples

  • netstat -tulnp | grep :80Who listens on port 80

Syntax

netstat [-tulnp] [-rn] (新環境はss推奨)

Before you run it

Read only.

Related commands

  • ssSockets and listening ports
  • lsofOpen files/ports
  • netstatConnections and listening ports

The same reference, with no signal at all

Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.

Get it free on the App Store