Quick Linux Tip #01: Looking for the last few lines of a large log file?

Quick Linux Tip #1:

Try: tail -20 /var/log/syslog

Info: The tail command shows the last lines of a file without loading the entire content into memory. It's perfect for checking recent log entries.




LinuxTeck.com
linuxteck@ubuntu:~$ tail -20 /var/log/syslog
Jun 26 11:52:27+0530 DEBUG reviving: failed for 'baseos', mismatched repomd.
Jun 26 11:52:27+0530 DEBUG repo: downloading from remote: baseos
Jun 26 11:52:27+0530 DEBUG countme: event triggered for baseos: bucket 2
Jun 26 11:52:33+0530 DEBUG baseos: using metadata from Thu 25 Jun 2026 05:01:09 PM IST.
Jun 26 11:52:33+0530 DEBUG countme: event triggered for appstream: bucket 1
Jun 26 11:52:34+0530 DEBUG reviving: failed for 'appstream', mismatched repomd.
Jun 26 11:52:34+0530 DEBUG repo: downloading from remote: appstream
Jun 26 11:52:34+0530 DEBUG countme: no event for appstream: window already counted
Jun 26 11:52:36+0530 DEBUG appstream: using metadata from Thu 25 Jun 2026 05:01:03 PM IST.
Jun 26 11:52:36+0530 DEBUG countme: event triggered for extras: bucket 1
Jun 26 11:52:38+0530 DEBUG reviving: failed for 'extras', mismatched repomd.
Jun 26 11:52:38+0530 DEBUG repo: downloading from remote: extras
Jun 26 11:52:38+0530 DEBUG countme: event triggered for extras: bucket 2
Jun 26 11:52:39+0530 DEBUG extras: using metadata from Thu 25 Jun 2026 04:30:34 PM IST.
Jun 26 11:52:39+0530 DEBUG timer: jack setup: 14248 ms
Jun 26 11:52:39+0530 DEBUG User-Agent: constructed: 'libdnf (Rocky Linux 10.2; generic Linux.aarch64)'
Jun 26 11:52:39+0530 DEBUG Completion plugin: Generating completion cache...
Jun 26 11:52:39+0530 INFO Metadata cache created.
Jun 26 11:52:39+0530 DEBUG Cleaning up.
Jun 26 11:52:39+0530 DEBUG Plugins were unloaded.
linuxteck@ubuntu:~$

About John Britto

John Britto Founder & Chief-Editor @LinuxTeck. A Computer Geek and Linux Intellectual having more than 20+ years of experience in Linux and Open Source technologies.

View all posts by John Britto →

Leave a Reply

Your email address will not be published.

L