Update cheatsheets

This commit is contained in:
ivuorinen
2025-11-22 00:19:27 +00:00
parent 53eeb491f5
commit c756b5f689
4 changed files with 74 additions and 8 deletions

View File

@@ -0,0 +1,25 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# systemctl list-machines
> List the host and all running local virtual machines or containers with their state.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#list-machines%20PATTERN%E2%80%A6>.
- Show all machines (host and running containers/VMs):
`systemctl list-machines`
- List a specific machine:
`systemctl list-machines {{machine}}`
- List multiple matching machines:
`systemctl list-machines {{machine_1 machine_2 ...}}`
- Filter machines using wildcard patterns ie, `shell-globbing`:
`systemctl list-machines {{pattern}}`

View File

@@ -0,0 +1,33 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# systemctl list-paths
> List path units currently in memory, ordered by path.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#list-paths%20PATTERN%E2%80%A6>.
- Show all path units currently in memory:
`systemctl list-paths`
- List path units matching specific wildcard pattern ie, `shell-globbing`:
`systemctl list-paths {{pattern}}`
- List path units that match with multiple patterns:
`systemctl list-paths {{pattern_1 pattern_2 ...}}`
- Show all path units, including inactive ones:
`systemctl list-paths --all`
- Filter path units by state:
`systemctl list-paths --state {{state}}`
- Also show unit types in the output:
`systemctl list-paths --show-types`