gives the main system directory for temporary files on your computer system.


$TemporaryDirectory
gives the main system directory for temporary files on your computer system.
Details

- $TemporaryDirectory gives the directory where files are created when no explicit file is specified in OpenWrite, CreateDirectory and related functions.
- On Unix-based systems, the default setting for $TemporaryDirectory is typically /tmp.
- The Wolfram System does not automatically delete files it creates in the $TemporaryDirectory directory, although the operating system may do so.
See Also
Related Guides
History
Text
Wolfram Research (2008), $TemporaryDirectory, Wolfram Language function, https://reference.wolfram.com/language/ref/$TemporaryDirectory.html.
CMS
Wolfram Language. 2008. "$TemporaryDirectory." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/$TemporaryDirectory.html.
APA
Wolfram Language. (2008). $TemporaryDirectory. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/$TemporaryDirectory.html
BibTeX
@misc{reference.wolfram_2025_$temporarydirectory, author="Wolfram Research", title="{$TemporaryDirectory}", year="2008", howpublished="\url{https://reference.wolfram.com/language/ref/$TemporaryDirectory.html}", note=[Accessed: 08-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_$temporarydirectory, organization={Wolfram Research}, title={$TemporaryDirectory}, year={2008}, url={https://reference.wolfram.com/language/ref/$TemporaryDirectory.html}, note=[Accessed: 08-August-2025]}