I have noted that at least since 18.04 up to 19.10 the settings for automatically cleaning temporary files is not enabled by default.
Why is this?
I reckon that one reason might be to limit wear on SSDs, but if a temporary file is not touched for 30 days, I guess we can remove it, right?
Update
I'd like to note that I have purposefully omitted the subject of the trash. That is for two reasons:
- The trash bin makes a visual statement that there is something in it.
- The files in the trash bin have actively been placed there by the user, contrary to the temporary files, of which many users are completely unaware.
systemctl enable systemd-tmpfiles && systemctl start systemd-tmpfiles && systemd-tempfiles
is how to turn it on but was not the question ;-) – Rinzwind Dec 19 '19 at 11:52/tmp
will be refreshed. – sudodus Dec 19 '19 at 13:29/tmp
was a tmpfs by default, but I cannot seem to find any mention of this in my current 19.10 system or my wifes 18.04. I know some users (my wife for instance) just suspends their machine when not in use, so in that case i think it might be beneficial. – beruic Dec 19 '19 at 14:10/tmp
is in the root partition.ls -ld /tmp
showsdrwxrwxrwt 16 root root 4096 dec 19 15:35 /tmp
. Do you want to clean/tmp
because it grows and occupies too much drive space? Or some other reason? See this link. – sudodus Dec 19 '19 at 14:54/tmp
. Sorry I'm not very active. Got sick. – beruic Dec 20 '19 at 19:10