[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

[AWS] AWS CLI를 이용해 EC2 인스턴스를 생성, 나열 그리고 삭제하기

> AWS CLI를 통해서 EC2 인스턴스를 생성, 나열 그리고 삭제를 해보자.## 환경- Ubuntu 18.04- AWS CLI- Bash shell(/bin/bash)## 과정1. AWS CLI 설치2. 기본 환경 설정(구성 및 자격 증명 설...… Continue reading