LPI Exam Questions

Which of the following commands can be used to view kernel messages?

Which of the following commands can be used to view kernel messages?

A.
less dmesg

B.
less /var/log/boot.log

C.
cat /proc/kernel |less

D.
cat /proc/dmesg

Explanation/Reference:
A) this command would only work when executing it from /var/log
C) file does not exist
D) there is a dmesg file, but it’s located in /var/log/dmesg