LPIC-1 Exam 102 v5 (Linux Administrator) — Question 22
On a system using systemd-journald, which of the following commands add the message Howdy to the system log? (Choose two.)
Answer options
- A. append Howdy
- B. logger Howdy
- C. systemd-cat echo Howdy
- D. echo Howdy > /dev/journal
- E. journalctl add Howdy
Correct answer: B
Explanation
The command 'logger Howdy' (option B) is specifically designed to send messages to the system log. The other options either do not correctly interface with the journald logging system or are not valid commands for logging messages.