snippetbashTip
systemctl list-sockets — List active socket units currently in memory, ordered by listening address. See also: `systemctl lis
Viewed 0 times
commandsocketclisystemctl list-socketsactivecurrentlyunitslist
linux
Problem
How to use the
systemctl list-sockets command: List active socket units currently in memory, ordered by listening address. See also: systemctl list-units, systemctl list-unit-files. More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#list-sockets%20PATTERN%E2%80%A6>.Solution
systemctl list-sockets — List active socket units currently in memory, ordered by listening address. See also: systemctl list-units, systemctl list-unit-files. More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#list-sockets%20PATTERN%E2%80%A6>.List active socket units currently in memory:
systemctl list-socketsList 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 ...}}Code Snippets
List active socket units currently in memory
systemctl list-socketsList 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 ...}}Context
tldr-pages: linux/systemctl list-sockets
Revisions (0)
No revisions yet.