From the course: LPIC-1 Exam 101 (Version 5.0) Cert Prep

Unlock the full course today

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

Reading the system journal

Reading the system journal - Linux Tutorial

From the course: LPIC-1 Exam 101 (Version 5.0) Cert Prep

Start my 1-month free trial

Reading the system journal

- [Instructor] Systemd has another type of logging service called journald. The journal is a binary file stored in /var/run which is a virtual file system in RAM. Everything in this file system disappears on reboot, thus the journal data by default is not persistent. Because it's in RAM, it also has a fixed size based on the amount of memory the system has. The data in the journal is structured and indexed so it can be accessed very quickly. If persistence is necessary, journald can be configured to forward journal data to our assist log. To view the journal entries we'll use journalctl. Type into a terminal, sudo journalctl and hit enter. And then type in your password to prompt in. Typing journalctl in without any arguments gives us all journal entries. If you wanted to be a bit more specific and only view entries from the kernel, you can specify a -k option. Press q, type in clear, bring your line back and add -k and…

Contents