mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-04 12:55:31 +00:00
Update cheatsheets
This commit is contained in:
30
tldr/linux/systemctl-list-sockets
Normal file
30
tldr/linux/systemctl-list-sockets
Normal file
@@ -0,0 +1,30 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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/systemctl.html#list-sockets%20PATTERN%E2%80%A6>.
|
||||
|
||||
- List active socket units currently in memory:
|
||||
|
||||
`systemctl list-sockets`
|
||||
|
||||
- List active socket units with their socket types:
|
||||
|
||||
`systemctl list-sockets --show-types`
|
||||
|
||||
- List 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 ...}}`
|
||||
Reference in New Issue
Block a user