[Linux](EN) Check systemd log using journalctl
Briefly review about journalctl
Environment and Prerequisite
- Linux base system
- Bash shell(/bin/bash)
What is journalctl?
journalctl
- systemd log is called
journal. journalctlquery logs of systemd.
Examples
Basic Usage
- Use journalctl command with options
journalctl [OPTIONS...] [MATCHES...]
Example - Check end of journals with explanatory explanations(errors or events)
- Use
-xeoption
journalctl -xe
Example - Check specific unit journals
- Use
-uoption
journalctl -u [systemd unit name]
Example - Keep tracking journals
- Use
-foption
journalctl -f