mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-21 13:51:00 +00:00
Update cheatsheets
This commit is contained in:
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# systemd-creds
|
||||
|
||||
> List, show, encrypt and decrypt service credentials.
|
||||
> List, show, encrypt, and decrypt service credentials.
|
||||
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemd-creds.html>.
|
||||
|
||||
- Encrypt a file and set a specific name:
|
||||
@@ -20,7 +20,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`echo -n {{text}} | systemd-creds encrypt --name {{name}} - {{path/to/output}}`
|
||||
|
||||
- Encrypt the text and append it to the service file (the credentials will be available in `$CREDENTIALS_DIRECTORY`):
|
||||
- Encrypt the text and append it to the `.service` file (the credentials will be available in `$CREDENTIALS_DIRECTORY`):
|
||||
|
||||
`echo -n {{text}} | systemd-creds encrypt --name {{name}} --pretty - - >> {{service}}`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user