$ netstat -tln
^1000
`Active Internet connections (only servers)`
`Proto Recv-Q Send-Q Local Address Foreign Address State`
`tcp 0 0 0.0.0.0:31518 0.0.0.0:* LISTEN`
`tcp 0 0 0.0.0.0:31691 0.0.0.0:* LISTEN`
`tcp 0 0 0.0.0.0:31046 0.0.0.0:* LISTEN`
`...`
$ ss -tln
^1000
`State Recv-Q Send-Q Local Address:Port Peer Address:Port Process`
`...`
`LISTEN 0 10 0.0.0.0:31960 0.0.0.0:*`
`LISTEN 0 1 0.0.0.0:12345 0.0.0.0:*`
`LISTEN 0 10 0.0.0.0:31518 0.0.0.0:*`
`LISTEN 0 10 0.0.0.0:31046 0.0.0.0:*`
`...`
$