Monter /tmp
dans un tmpfs
, un système de fichier en mémoire RAM. Accélère le système, économise le disque.
Add this line in /etc/fstab
:
tmpfs /tmp tmpfs defaults 0 0
$ su -c 'echo "tmpfs /tmp tmpfs defaults 0 0" >> /etc/fstab'
$ sudo rm -rf /tmp/*
$ sudo reboot
By default, the allocated size is half of the installed RAM. The maximum size limit of a Some programs may have an intensive usage of temporary files and
could fail because of missing free space in |
|
/var/tmp should not be mounted in RAM as it is designated in the
FHS as "to be
preserved between reboots".
|
Firefox can be configured to store its cache in /tmp , via
about:config , while creating the string key
browser.cache.disk.parent_directory with the /tmp value.
|