I use Fedora and these directories contains a large amount of files, I wonder whether I can delete them? The system is running low on space.
Yes you can delete everything inside of
/var/log/journal/* but do not delete the directory itself. You can also query
journalctl to find out how much disk space it's consuming:
$ journalctl --disk-usage Journals take up 3.8G on disk.
You can control the size of this directory using this parameter in your
You can force a log rotation:
$ sudo systemctl kill --kill-who=main --signal=SIGUSR2 systemd-journald.service
NOTE: You might need to restart the logging service to force a log rotation, if the above signaling method does not do it. You can restart the service like so:
$ sudo systemctl restart systemd-journald.service
These files too under
/var/cache/abrt-di/* can be deleted as well. The size of the log files here is controlled under:
$ grep -i size /etc/abrt/abrt.conf # Max size for crash storage [MiB] or 0 for unlimited MaxCrashReportsSize = 1000
You can control the max size of
/var/cache/abrt-di by changing the following in file,
DebugInfoCacheMB = 2000
NOTE: If not defined
DebugInfoCacheMB defaults to 4000 (4GB).
You can also clean based on time:
# du -sh /var/log/journal 113M /var/log/journal # journalctl --vacuum-time=10d Deleted archived journal /email@example.com (8.0M). Deleted archived journal /firstname.lastname@example.org (8.0M). . . . Deleted archived journal /email@example.com (8.0M). Vacuuming done, freed 88.0M of archived journals from /var/log/journal/f77f9567bb70f8e7b5d9a0c95bef5c2a. root@monroe:/var/log# du -sh /var/log/journal 25M /var/log/journal