journalctl: a log analyser from systemd
You can use
journalctl to analyse logs from systemd services by using a wide variety of filters. In order to access all logs, you need to be a root user or have superuser privileges.
These are some of the most useful parameters you can use with
-n: shows the ten most recent logs. You can add a number after the parameter to specify a different amount.
-u <unit>: filter by a systemd unit.
journalctl -u cronie
-p <priority>: filters by priority. Shows logs with that priority or higher (which corresponds to a lower number): “emerg” (0), “alert” (1), “crit” (2), “err” (3), “warning” (4), “notice” (5), “info” (6), “debug” (7).
journalctl -p err
-S <date>: shows logs since
<date>. Date format:
2021-01-01 12:00:00(use double quotes, time part can be ommitted).
journalctl -S "2021-10-01 12:00:00"
-U <date>: shows logs until
-f: shows most recent logs and updates the list in real time.
More parameters on the man page (
In Debian/Ubuntu systems, you can use
dpkg-reconfigureto reconfigure an installed package using intuitive dialogs. I will show you how to use this command to change some system settings.
If you have a scanned PDF and you want to be able to search and copy text from it, in this tutorial I will show you how to do it.
If you want to do X11 forwarding from your container to your host, you can type these simple commands.
If you don’t have a Graphical User Interface (GUI) on your Linux device, or you need a simple text-based web browser, I will show you a couple of great programs.
A comprehensive list of Linux-related websites sorted by categories.