Difference between revisions of "Systemd-cat"
Jump to navigation
Jump to search
↑ https://www.freedesktop.org/software/systemd/man/systemd-cat.html
↑ https://wiki.ubuntu.com/DebuggingSystemd
Tags: Mobile web edit, Mobile edit |
|||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{lowercase}} | ||
<code>systemd-cat</code><ref>https://www.freedesktop.org/software/systemd/man/systemd-cat.html</ref> write everything it reads from standard input (<code>[[stdin]]</code>) to [[systemd]] journal | <code>systemd-cat</code><ref>https://www.freedesktop.org/software/systemd/man/systemd-cat.html</ref> write everything it reads from standard input (<code>[[stdin]]</code>) to [[systemd]] journal | ||
Line 6: | Line 7: | ||
** <code>echo "TEXT TO LOG" | systemd-cat -p info</code> | ** <code>echo "TEXT TO LOG" | systemd-cat -p info</code> | ||
* <code>systemd-cat -p info -t TEXT</code> | * <code>systemd-cat -p info -t TEXT</code> | ||
− | + | * <code>-p, --priority options: "emerg", "alert", "crit", "err", "warning", "notice", "info", "debug"</code> | |
− | |||
== Related commands == | == Related commands == |
Latest revision as of 10:38, 22 October 2021
systemd-cat
[1] write everything it reads from standard input (stdin
) to systemd journal
Usage[edit]
echo "TEXT TO LOG" | systemd-cat
echo "TEXT TO LOG" | systemd-cat -p info
systemd-cat -p info -t TEXT
-p, --priority options: "emerg", "alert", "crit", "err", "warning", "notice", "info", "debug"
Related commands[edit]
See also[edit]
- Linux logging, Cisco IOS logging
- Systemd:
systemctl
,systemd-journald
,journalctl
systemd-cat
,systemd-logind
,systemd-networkd
:networkctl
,systemd-timesyncd
,systemd-resolved
,systemd-udevd
[2],Systemd-logind: loginctl
,hostnamectl
,udevadm
,systemd-run
,portablectl
,systemd-nspawn
, systemd resource management, Timer (systemd), systemd logs,/etc/systemd/
, systemd services,systemd-mount
,/run/systemd/
,.service
,/usr/lib/systemd/
,/usr/lib/systemd/system/
,/usr/lib/systemd/system/systemd-resolved.service
,/lib/systemd/
, machinectl, systemd-oomd, systemd-analyze
Advertising: