mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-03 18:55:20 +00:00
Update cheatsheets
This commit is contained in:
25
tldr/linux/systemctl-list-machines
Normal file
25
tldr/linux/systemctl-list-machines
Normal 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}}`
|
||||
33
tldr/linux/systemctl-list-paths
Normal file
33
tldr/linux/systemctl-list-paths
Normal 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`
|
||||
Reference in New Issue
Block a user