How to use /tmp to save nautilus thumbnails?
I used RAM disk to save tmp files, and I want to use the preview & thumbnails feature with nautilus, but I don't want to save the nautilus because it consume a lot of disk and performance is not good.
我想利用RAMDisk来保存临时的预览文件,在Ubuntu中如何实现?
首先,请把tmp目录以tmpfs模式挂载到内存即可,然后进入 ~/.cache/,运行:
mv ~/.cache/thumbnails /tmp
ln -s /tmp/thumbnails ~/.cache/thumbnails
别忘记在/etc/profile里面添加一行:
mkdir -p /tmp/thumbnails