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 - Linux Tutorial
From the course: LPI Linux Essentials (010-160) Cert Prep
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
-
-
(Locked)
Package management principles3m 10s
-
(Locked)
Package management systems4m 9s
-
(Locked)
Using RPM and DEB14m 23s
-
(Locked)
Process hierarchy2m 28s
-
(Locked)
Identifying running processes5m 49s
-
(Locked)
Measuring memory use4m 31s
-
(Locked)
Log files4m 44s
-
(Locked)
The kernel ring buffer3m 5s
-
(Locked)
-
-
-
-