Hackbydoing Academy tool guide · Linux command line essentials · free, no login
journalctl reads the systemd journal — the central diary where services and the kernel record their log messages — and lets you filter it by service, time and seriousness.
journalctl -u sshd --since "1 hour ago" -p err
It shows only the SSH service's error-level messages from the last hour — the triage view for 'why did logins just start failing?'.
| --since | Start time: the next piece is its value, when to begin reading, written in quotes like "1 hour ago" or "2026-11-15 02:00". Its partner --until sets the end of the window. |
| -f | Follow: keep the journal open and print new entries as they happen, like tail -f for the whole system. |
| -k | Kernel only: show only messages from the kernel (the core of the operating system) — where hardware events like a newly plugged-in USB device are recorded. |
| -n | Number: the next piece is its value, how many of the most recent lines to show, like -n 50 for the last 50 entries. |
| -p | Priority (seriousness): the next piece is its value, the lowest severity to show — like err (errors and anything worse) — so routine chatter is filtered out and only real problems remain. |
| -u | Unit: the next piece is its value, the name of the service whose messages you want, like sshd — everything else is filtered out. |
Only run journalctl on systems you own or have explicit, written permission to test — at work that means a signed engagement, at home that means your own lab. Inside Hackbydoing Academy you practice on simulated networks and lab machines built for exactly this, where breaking things is the lesson and no one else's systems are involved. Learning how a tool works also teaches you what it looks like from the defender's chair: the logs it leaves, the traffic it makes, and the settings that shut it down.
Reading about journalctl is step one. In the Academy you run it yourself, step by step, in guided labs on simulated networks — 185 rooms covering attack and defense, from your first scan to full operations, with a defender's debrief at the end of every room. Founding membership is $9.99/mo for the first 500 members.
Join Hackbydoing Academy →Free from the Hackbydoing Academy — learn cybersecurity by doing: real tools, guided labs, attack and defense, on simulated networks. More free material: Tool Guides index · Free Downloads Library · Hackbydoing Academy · Print this page (Ctrl/Cmd+P) for a clean paper copy.