exam questions

Exam 102-500 All Questions

View all questions & answers for the 102-500 exam

Exam 102-500 topic 1 question 69 discussion

Actual exam question from LPI's 102-500
Question #: 69
Topic #: 1
[All 102-500 Questions]

On a system using systemd-journald, which of the following commands add the message Howdy to the system log? (Choose two.)

  • A. append Howdy
  • B. logger Howdy
  • C. systemd-cat echo Howdy
  • D. echo Howdy > /dev/journal
  • E. journalctl add Howdy
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
hossem1998
Highly Voted 4 years ago
sorry b and c
upvoted 14 times
nicolas97
3 years, 8 months ago
bravo ragazzo
upvoted 5 times
...
...
dpereiro4481
Most Recent 3 months, 3 weeks ago
Selected Answer: C
Si hacemos la prueba en cualquier sistema linux ejecutando tanto la opciĂłn B loogger Howdy como la opciĂłn C systemd-cat echo Howdy, luego podemos ver con journalctl | grep Howdy como nos aparece una nueva lĂ­nea con el mensaje o etiqueta que hemos indicado. Por lo tanto B y C son mis elecciones.
upvoted 1 times
...
Mchoeti
1 year, 4 months ago
it is B and C , please update
upvoted 2 times
...
Mchoeti
1 year, 5 months ago
Selected Answer: B
The right solution is B and C logger Howdy is used to send a message to the system log from the command line. systemd-cat is used to connect a command to the journal, and echo Howdy sends the message "Howdy" to systemd-cat, which in turn sends it to the journal.
upvoted 4 times
...
Stormy_Cloud
1 year, 6 months ago
Why this answer is not fixed if its wrong?
upvoted 1 times
...
k3n_
1 year, 7 months ago
Selected Answer: B
Ok, i tested all the options B & C are correct. There is no ADD option in "journalctl"
upvoted 2 times
...
carter_slade
2 years ago
B. logger Howdy C. systemd-cat echo Howdy
upvoted 1 times
...
drliu1202
2 years ago
Selected Answer: C
"while we send a log manually from our Debian clien" https://learning.lpi.org/en/learning-materials/102-500/108/108.2/108.2_01/#:~:text=while%20we%20send%20a%20log%20manually%20from%20our%20Debian%20client
upvoted 2 times
...
drliu1202
2 years ago
Selected Answer: B
"Just like how the logger command is used to send messages from the command line to the system log (as we saw in the previous lesson), the systemd-cat command serves a similar — but more well-rounded — purpose with the system journal." https://learning.lpi.org/en/learning-materials/102-500/108/108.2/108.2_02/#:~:text=Just%20like%20how%20the%20logger%20command%20is%20used%20to%20send%20messages%20from%20the%20command%20line%20to%20the%20system%20log%20(as%20we%20saw%20in%20the%20previous%20lesson)%2C%20the%20systemd%2Dcat%20command%20serves%20a%20similar%E2%80%89%E2%80%94%E2%80%89but%20more%20well%2Drounded%E2%80%89%E2%80%94%E2%80%89purpose%20with%20the%20system%20journal.
upvoted 1 times
...
TITI
2 years, 1 month ago
correct are B and C
upvoted 1 times
...
lucaverce
2 years, 3 months ago
Selected Answer: C
B and C - tested on Red Hat and worked. E is WRONG, give error: [root@xxxxx ~]# journalctl add TEST Failed to add match 'add': Invalid argument Failed to add filters: Invalid argument
upvoted 2 times
...
amindiashvili
2 years, 4 months ago
Selected Answer: C
B and C
upvoted 2 times
...
Lazylinux
2 years, 4 months ago
Selected Answer: B
BC are correct below is why systemd-cat and logger commands: are used to send messages from the command line to the system log. The systemd-cat command serves a similar — but more well-rounded — purpose with the system journal. It allows us to send standard input (stdin), output (stdout) and error (stderr) to the journal. If invoked with no parameters, it will send everything it reads from stdin to the journal. Once you are done, press Ctrl+C:. The logger command comes in handy for shell scripting or for testing purposes. logger will append any message it receives to /var/log/syslog (or to /var/log/messages when logging to a remote central log server as you will see later in this lesson):
upvoted 2 times
...
jedrek
2 years, 4 months ago
This answer is incorrect. It says select two but only one is provided as correct answer Correct answer is B and C Test it: 1. On one tab listen to journal logs journalctl -f 2. On another tab do logger Howdy systemd-cat echo Howdy Both will appear in the output of journalctl -f command Hence the correct answer is B,C
upvoted 2 times
...
wvdw1962
2 years, 6 months ago
I have tested on Ubuntu, its answer B + C. "journalctl add" : 'add' -Invalid argument
upvoted 1 times
...
Robert12
2 years, 6 months ago
In the first 60 questions of this test there is approximately 8 questions that can cause confusion when choosing the correct options. This one is the worst , it asks you to choose 2 options but only reports 1 answer. The answer it reports is way out.
upvoted 3 times
...
Robert12
2 years, 6 months ago
There is no -add option within the man page for journalctl so option D must be incorrect. systemd-cat is definitely correct. The question asks for 2 choices so the only other option left for me is logger . My answers would be B & C
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago