As of Version 7.0, $TemporaryPrefix 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 $TemporaryPrefix is typically /tmp/m.
  • $TemporaryPrefix can be reset.
  • The Wolfram System does not automatically delete files in directories specified by $TemporaryPrefix, although the operating system may do so.


Basic Examples  (1)

Click for copyable input

See Also

OpenWrite  CreateDirectory  $RootDirectory

Introduced in 1988