Mount tmpfs on macOS
Introduction Some Linux users, especially those who have experience with Gentoo Linux, usually want some portion of their systems mounted as tmpfs. tmpfs will only keep the files in the system’s memory and is convenient for us to throw away files on system reboot. I am definitely one of the fans of tmpfs because tmpfs helps me keep some software from shitting on my computer.
However, when it comes to macOS, mounting a tmpfs seems to be a little bit complex.