systemctl-list-sockets
List active socket units currently in memory, ordered by listening address. tldr-pages
On Linux
Linux
List active socket units currently in memory
systemctl list-socketsIdentifyList active socket units with their socket types
systemctl list-sockets --show-typesIdentifyList all socket units, including inactive and failed ones
systemctl list-sockets --allIdentifyList socket units filtered by state
systemctl list-sockets --state activeIdentifyList socket units matching a name pattern
systemctl list-sockets pattern1 pattern2 ...Identify