[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.
  • journalctl query 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 -xe option
journalctl -xe


Example - Check specific unit journals

  • Use -u option
journalctl -u [systemd unit name]


Example - Keep tracking journals

  • Use -f option
journalctl -f


Reference

[Docker] 도커(Docker) 이미지 이름과 태그 목록 가져오기

> 도커(Docker) 이미지 이름과 태그 목록을 awk과 tail 명령어를 이용해 가져오는 방법을 알아보자## 환경- Linux 기반 시스템- Bash shell(/bin/bash)- Docker- awk, tail 명령어## 도커(Docker...… Continue reading