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 - Linux Tutorial
From the course: LPIC-1 Exam 101 (Version 5.0) Cert Prep
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…
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)
About SysVinit, systemd, and Upstart2m 32s
-
Get systemd service status3m 56s
-
(Locked)
Manage systemd services2m 33s
-
(Locked)
Make systemd services persistent1m 40s
-
(Locked)
About SysVinit services6m 4s
-
(Locked)
Change runlevels/targets3m 45s
-
(Locked)
Boot into the emergency target4m 13s
-
(Locked)
Locate and interpret system log files4m 43s
-
(Locked)
Reading the system journal3m 1s
-
(Locked)
-
-
-
-
-
-
-
-
-
-