
You can also use the journalctl command for the same task: journalctl -disk-usageīoth commands should give approximately the same result: :~$ journalctl -disk-usageĪrchived and active journals take up 1.6G in the file system. Clearing systemd journal logsįirst, check the space taken by journal logs with the du command: du -sh /var/log/journal/ Let me show you how to clean systemd journal logs and free up disk space on your Linux system. And if you check the disk space in Linux, you’ll see that sometimes, it takes several GB of space.

The thing with logging is that over time, it starts to grow big. To view all the latest logs, use the command with the reverse option. You can either manually view the log files using less command or use the journalctl command.

If you remember the Linux directory structure, /var is where the system logs are stored.

It collects and stored kernel logging data, system log messages, standard output, and errors for various systemd services.Ī Linux machine with systemd writes the logs to /var/log/journal directory. It is equivalent to the syslog in the init system. The systemd journal is systemd’s own logging system. This quick tutorial shows you two ways to clear systemd journal logs from your Linux system.
