1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-28 18:54:16 +02:00

systemd-cat: add examples (#17754)

* systemd-cat: add examples
This commit is contained in:
Lena 2025-08-26 04:17:42 +02:00 committed by GitHub
parent 833e0d84fb
commit cbc80c707e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -10,3 +10,15 @@
- Write the output of a pipeline to the journal (`stderr` stays connected to the terminal):
`{{command}} | systemd-cat`
- Use the specified identifier (default: `cat` when reading from a pipeline, executable name otherwise):
`{{command}} | systemd-cat {{[-t|--identifier]}} {{id}}`
- Use the specified default priority level for all logged messages:
`systemd-cat {{[-p|--priority]}} {{emerg|alert|crit|err|warning|notice|info|debug}} {{command}}`
- Use the specified default priority level for the logged messages from the command's `stderr`:
`systemd-cat --stderr-priority {{emerg|alert|crit|err|warning|notice|info|debug}} {{command}}`