Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# systemd-machine-id-setup
> Initialize the machine ID stored in `/etc/machine-id` at install time with a provisioned or randomly generated ID.
> Note: Always use `sudo` to execute these commands as they require elevated privileges.
> More information: <https://www.freedesktop.org/software/systemd/man/systemd-machine-id-setup.html>.
- Print the generated or committed machine ID:
`systemd-machine-id-setup --print`
- Specify an image policy:
`systemd-machine-id-setup --image-policy={{your_policy}}`
- Display the output as JSON:
`sudo systemd-machine-id-setup --json=pretty`
- Operate on a disk image instead of a directory tree:
`systemd-machine-id-setup --image={{/path/to/image}}`