Can I delete files in var log journal?

Can I delete files in var log journal?

journal logs 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.

How do I delete a journal file in Linux?

3. Now clear the journal logs by choosing one of following commands:

  1. Delete journal logs older than X days: sudo journalctl –vacuum-time=2days.
  2. Delete log files until the disk space taken falls below the specified size: sudo journalctl –vacuum-size=100M.

Can you remove files from / var / log / journal?

Yes, the files from /var/log/journal directory can be removed. which deletes old log-files from /var/log/journal until total size of the directory becomes under specified threshold (500 megabytes in this example).

Can you delete / var / cache / apt / archives Dir?

Yes, don’t delete /var/cache/apt/archives dir, but you can delete files: /var/cache/apt/pkgcache.bin and /var/cache/apt/srcpkgcache.bin, but them will be recreated by “apt-get update”. On Debian, /var/cache/bind contains zone files transferred from other nameservers—it shouldn’t contain master zones.

How to clean files under / var / spool / ABRT Directory?

How to clean files under /var/spool/abrt directory? /var file system is almost full now with many files under /var/spool/abrt directory. All crash report and back trace from kernel driver is written on subdirectories of /var/spool/abrt directory.

When to delete files from / var / cache?

It is assumed that files stored here are not critical, so the system can delete the contents of /var/cache either periodically, or when its contents get too large. Any application should take into account that the file stored here can disappear any time, and be ready to recompute its contents (with some time penalty).