System Management

An administrator mounts a tmpfs filesystem at /mnt/scratch with the option size=1g and then writes 300 MB of files to it. Which statement BEST describes how that data is stored?

Show the answer

Correct answerA. It is held in virtual memory, uses only the space needed, and is lost at unmount or reboot

Tmpfs is backed by virtual memory (RAM and possibly swap), consumes only what the files need up to the size limit, and its contents vanish on unmount or reboot. It does not pre-allocate the full size, which is the tempting misconception.