2.3.4. The TMP and TMPDIR environment variables
On Windows platforms, the environment variable TMP is used to specify the directory to be used for temporary files.
On Red Hat Linux platforms, the environment variable TMPDIR is used to specify the directory to be used for temporary files. If TMPDIR is not set, a default temporary directory, usually /tmp or /var/tmp, is used.