As of Mathematica 7.0, has been superseded by $TemporaryDirectory.

is a string that gives the path and beginning of the name for files and directories that are created by OpenWrite and CreateDirectory when no explicit file is specified.


  • On Unix systems, the default setting for is typically /tmp/m.
  • can be reset.
  • Mathematica does not automatically delete files in directories specified by , although the operating system may do so.
New in 1
New to Mathematica? Find your learning path »
Have a question? Ask support »