From the course: LPI Linux Essentials (010-160) Cert Prep

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

The kernel ring buffer

The kernel ring buffer - Linux Tutorial

From the course: LPI Linux Essentials (010-160) Cert Prep

Start my 1-month free trial

The kernel ring buffer

- Let's take a look at the kernel ring buffer. It can be thought of as a log file, but for the kernel itself. However, unlike other log files, it's stored in memory rather than in a disk file. Like regular log files, though, its contents are continuing to change as the computer runs. If you want to examine the kernel ring buffer, you can type in the word D-M-E-S-G or, dmesg. Now, by doing so, you're going to create an overwhelming amount of information that's going to be outputted to your screen. If you want to see it through less so you can see one screen at a time, just type in dmesg | L-E-S-S. Alternatively, if the information needed is going to be associated with a particular string, we can use grep to search for it. So, for example, to find the kernel ring buffer message about the first hard disk, which is known as /dev/sda, you can type the following command: $ dmesg | grep sda And now, we're going to…

Contents