Practical Usage Of journalctl

Introduction

If you really forget all the options, just type journalctlto see all the saved logs, if a long line is truncated, you can scroll to the right by pressing the arrow keys

Let’s start

root@test:/home/ozyrys# journalctl -e
root@test:/home/ozyrys# journalctl -ex
root@test:/home/ozyrys# journalctl -f
root@test:/home/ozyrys# journalctl -u sshd

You can specify the full path of the executable file as in.

root@test:/home/ozyrys# journalctl /usr/sbin/sshd
root@test:/home/ozyrys# journalctl -n 100
root@test:/home/ozyrys# journalctl -b

 by the author.

--

--

--

DevOps Consultant. I’m strongly focused on automation, security, and reliability.

Love podcasts or audiobooks? Learn on the go with our new app.

Big Data Pipeline series — Part I: Getting all the data — Scraping Tiki

Entity Framework on Azure Functions with Dependency Injection

TIP: Projects Require Both Plans and Schedules

Stepping Back for a Broader View

Sets: How a Single Rule Can Affect Efficiency

images/understanding_arrays/array_19.png

Completing the Pipe

More Expressions, Fewer Sta tements

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Maciej

Maciej

DevOps Consultant. I’m strongly focused on automation, security, and reliability.

More from Medium

Quick Way to Get the List of NSG Rules in the Subscription via AZ CLI

Securing Microsoft Azure AD with FIDO2 Keys — Passwordless Authentication

XMGoat — An Open Source Pentesting Tool for Azure

Setting Up a Load Balancer With HAProxy