commands.sh

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, --allboolean

List 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

List all socket units, including inactive and failed ones

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