Temporary file

Temporary file

Temporary files may be created by computer programs for a variety of purposes; principally when a program cannot allocate enough memory for its tasks, when the program is working on data bigger than architecture's address space, or as a primitive form of inter-process communication.

Auxiliary memory

Modern operating systems employ virtual memory, however programs that use large amounts of data (e.g. video editing) may need to create temporary files.

Inter-process communication

Most operating systems offer primitives such as pipes, sockets or shared memory to pass data among programs, but often the simplest way (especially for programs that follow the Unix philosophy) is to write data into a temporary file and inform the receiving program of the location of the temporary file.

Cleanup

Some programs create temporary files and then leave them behind - they do not delete them. This can happen because the program crashed or the developer of the program simply forgot to add the code needed to delete the temporary files after the program is done with them. The temporary files left behind by the programs accumulate over time and can take up a lot of disk space. System utilities, called temporary file cleaners or disk cleaners, can be used to address this issue.

Usage

The usual filename extension for temporary files is ".TMP". Temporary files are normally created in a designated temporary directory reserved for the creation of temporary files.

On Unix, temporary files can be safely created with the program. These files are typically located in the /tmp directory.

ee also

*Temporary folder
*Temporary filesystem
*Temporary variable


Wikimedia Foundation. 2010.

Игры ⚽ Поможем решить контрольную работу

Look at other dictionaries:

  • Temporary File —   [engl.], temporäre Datei …   Universal-Lexikon

  • temporary file — laikinasis failas statusas T sritis informatika apibrėžtis Programos sukurta ↑failas laikiniesiems arba tarnybiniams duomenims programos veikimo metu įrašyti. Pavyzdžiui, dokumentų ↑rengyklės dažnai į laikinuosius failus įrašo naudotojo padarytus …   Enciklopedinis kompiuterijos žodynas

  • Temporary — is a term that denotes a finite period of time, with a defined beginning and an end. It is derived from the Latin temporarius of seasonal character, lasting a short time, from tempus (gen. temporis ) time, season. It is the opposite of permanent …   Wikipedia

  • temporary swap file — temporary file on a disk whose area functions as virtual memory …   English contemporary dictionary

  • Temporary folder — 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… …   Wikipedia

  • Temporary variable — In computer programming, a temporary variable is a variable whose purpose is short lived, usually to hold temporarily data that will soon be discarded, or before it can be placed at a more permanent memory location. Because it is short lived, it… …   Wikipedia

  • Temporary Internet Files — is a directory on Microsoft Windows computer systems. The directory is used by Internet Explorer to cache pages and other multimedia content, such as video and audio files, from websites visited by the user. This allows such websites to load more …   Wikipedia

  • File locking — is a mechanism that enforces access to a computer file by only one user or process at any specific time. The purpose of locking is to prevent the classic interceding update scenario. The interceding update problem may be illustrated as in the… …   Wikipedia

  • File Transfer Protocol — (FTP) is a network protocol used to transfer data from one computer to another through a network such as the Internet.FTP is a file transfer protocol for exchanging and manipulating files over a TCP computer network. A FTP client may connect to a …   Wikipedia

  • File deletion — is a way of removing a file from a computer s file system. The reasons for deleting files are Freeing the disk space Removing duplicate or unnecessary data to avoid confusion Making sensitive information unavailable to others All operating… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”