Skip to content

Function of tmp directory in linux

Question

What is the function of the /tmp directory in a filesystem?

Answer

The /tmp directory is used for storing temporary files that are created by applications and the system. These files are typically deleted upon system reboot or after a certain period, ensuring that the space is not permanently consumed.