====== BASH - Directories - Place /tmp on a tmpfs partition ====== **WARNING:** Only follow these instructions if your system had at least 4GB memory! Because then this tweak won't make them faster, but (much) slower. Speed up your system a bit by placing **/tmp** on a tmpfs partition. Any temporary files will not be placed on the hard disk anymore, but on a virtual RAM disk instead. ---- sudo cp -v /usr/share/systemd/tmp.mount /etc/systemd/system/ sudo systemctl enable tmp.mount Reboot your computer. After the reboot, check whether it works: systemctl status tmp.mount By default, a tmpfs partition has its maximum size set to half your total RAM. The actual memory consumption depends on how much you fill it up, as a tmpfs partition doesn't consume any memory until it is actually needed. ---- ===== To undo tmpfs ===== sudo rm -v /etc/systemd/system/tmp.mount Reboot.