On a systemd system, type the journalctl command that restricts the output to kernel messages from the current boot.

LPIC-1 Exam 101-500, objective 101. System architecture medium

Draft — not checked yet. This question was written from the published exam objectives and cites the clause it comes from, but nobody has yet read it against that clause and signed for it.

It is kept out of search results and out of mock exams until they have. Read the source below before you take the answer as settled.

Answer

Type the answer.

Accepted answers

Case sensitive — Linux is, and grading LS as ls would teach a falsehood.

Why

journalctl -k (long form --dmesg) restricts output to kernel messages and implies -b, so it already limits the output to the current boot. It is the journal's answer to dmesg, with the advantage that it can be combined with a boot offset: journalctl -k -b -1 shows the kernel messages from the previous boot, which the in-memory ring buffer behind dmesg cannot do.

Where this comes from

Cited
manual page journalctl(1)

Practise this

Reading one question is not practice. The trainer will draw a set from objective 101 and space the ones you get wrong.

Practise LPIC-1 Exam 101-500