I just found that there are two big files in my Ubuntu 16.04:
/run/log/journal/c840a48...(a very long name)...debfed5d/system.journal
/var/log/installer/cdebconf/templates.dat
My goal is to make the filesystem of Ubuntu as small as possible, so I'm thinking if I can remove these two files because they are all big enough (more than 10 MB).
It seems that they are two log files, so can I simply remove them? If they come from some processes, is it possible to disable the log system of these processes to prevent the two files to be generated?
/run
is a tmpfs by default on Ubuntu. Its contents are lost on reboot and do not exist on disk (with possible exceptions of/run/media
, etc.) .