首页 > 代码库 > tmpfs

tmpfs

the /tmp folder of linux will be cleaned every time when you reboot.

Well, actually, It doesn‘t "delete on reboot"; it only exists in RAM in the first place. Mount tmpfs to a directory under your home directory.

tmpfs is a virtual filesystem, just like proc or sysfs. You can use the name directly without specifying a device file.

tmpfs is a common name for a temporary file storage facility on many Unix-like operating systems. It is intended to appear as a mounted file system, but stored in volatile memory instead of a persistent storage device. A similar construction is a RAM disk, which appears as a virtual disk drive and hosts a disk file system.

tmpfs