If you’re like me, you’re probably running linux on a SSD and wish to reduce the amount of writes as much as possible to prolong the life of your SSD and if you regularly view image or video files in your file browser than this tip is for you.

My file browser, or nemo as it’s called, saves it’s thumbnails in ~/.cache/thumbnails. This folder can get quite big if you happen to browse folders full of images every day. Lucky for us, we have a built in ramdisk to store them in.

So, simply make a directory and symlink it like so:

mkdir /dev/shm/thumbnails
ln -s /dev/shm/thumbnails ~/.cache/thumbnails

You can set your computer to create this folder in the ramdisk at boot time and you’re good to go.

Cheers! :)