Temporary folder

history

In computing, a temporary folder or temporary directory is a directory used to hold temporary files. Many operating systems and some software automatically delete the contents of this directory at bootup or at regular intervals.

For security reasons, it is best for each user to have his own temporary directory, since there has been a history of security vulnerabilities with temporary files due to programs incorrect file permissions or race conditions.

A standard procedure for system administration is to reduce the amount of storage space used (typically, on a disk drive) by removing temporary files. In multi-user systems, this can potentially remove active files, disrupting users' activities. To avoid this, some space-reclaiming procedures remove only files which are inactive or "old," those which have not been read or modified in several days.

When a user opens an attached file from Outlook or other email utilities, the default save location is often an obscurely-named temporary folder (e.g. C:Documents and SettingsNathan LarsonLocal SettingsTemporary Internet FilesContent.IE5S9QNS9UR). Thus, it is easy, after modifying the file, to inadvertently save it, thereupon closing it, and then have no idea where to find it later. If this happens, a way to retrieve the file may be to open the original attachment again and attempt to save it; this will usually show the temporary folder's path where the modified file is located.

Traditional locations

In MS-DOS and Microsoft Windows, the temporary folder is set by the environment variable TEMP. Originally the default was c:Temp, then %WINDIR%Temp. In modern versions, the temporary folder is set per-user as Local SettingsTemp, although it's still user relocatable.

In Unix and Linux, the global temporary directories are /tmp and /var/tmp. Typically, /var/tmp is for persistent files (as it is preserved over reboots), and /tmp is for more temporary files. See Filesystem Hierarchy Standard. In addition, a user can set his TMPDIR environment variable to point to a preferred directory (where the creation and modification of files is allowed).

See also


home | This article is licensed under the GNU Free Documentation License. See full license termsIt uses material from the Wikipedia article "Temporary_folder ". | compliance | March 19th 2010