systemctl list-sockets
linux
List active socket units currently in memory, ordered by listening address. See also: `systemctl list-units`, `systemctl list-unit-files`.
More info →Options (1)
-a, --allbooleanList all socket units, including inactive and failed ones
Example:
systemctl list-sockets {{[-a|--all]}}Examples (5)
List active socket units currently in memory
List active socket units with their socket types
systemctl list-sockets --show-typesList all socket units, including inactive and failed ones
systemctl list-sockets [-a|--all]List socket units filtered by state
systemctl list-sockets --state active|inactive|failed|...List socket units matching a name pattern
systemctl list-sockets pattern1 pattern2 ...made by @shridhargupta | data from tldr-pages