TMPDIR: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
SmackBot (talk | contribs)
m remove Erik9bot category,outdated, tag and general fixes
Updated The Open Group specification reference titles and URLs from Base Specifications Issue 6, IEEE Std 1003.1, 2004 Edition to Open Group Base Specifications Issue 7, IEEE Std 1003.1-2008
(7 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{Unreferenced stub|auto=yes|date=December 2009}}
{{Refimprove|date=December 2009}}
'''TMPDIR''' is the [[Canonical#Computer_science|canonical]] [[Unix]] [[environment variable]] that points to user [[scratch space]]. Most [[Unix]] utilities will honor the setting of this variable and use its value to denote the scratch area for temporary files instead of the common default of <tt>/tmp</tt>.
'''TMPDIR''' is the [[Canonical#Computer_science|canonical]] [[Unix]] [[environment variable]] that should be used to specify a [[Temporary folder|temporary directory]] for [[scratch space]]. Most [[Unix]] programs will honor this setting and use its value to denote the scratch area for temporary files instead of the common default of <tt>/tmp</tt><ref>{{Cite web| url = http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap10.html#tag_10_01 | title = The Open Group Base Specifications Issue 7, IEEE Std 1003.1-2008, Base Definitions volume: Directory Structure and Files: /tmp | publisher = [[Open Group|The Open Group]] | accessdate = 2011-04-02}}</ref><ref>{{Cite web| url = http://www.pathname.com/fhs/pub/fhs-2.3.html#TMPTEMPORARYFILES | title = Filesystem Hierarchy Standard, version is 2.3: /tmp: Temporary files | publisher = [[Linux Foundation]] | accessdate = 2010-06-13}}</ref> or <tt>/var/tmp</tt><ref>{{Cite web| url = http://www.pathname.com/fhs/pub/fhs-2.3.html#VARTMPTEMPORARYFILESPRESERVEDBETWEE | title = Filesystem Hierarchy Standard, version is 2.3: /var/tmp: Temporary files preserved between system reboots | publisher = [[Linux Foundation]] | accessdate = 2010-06-13}}</ref>.


Other forms sometimes accepted are <tt>TEMP</tt>, <tt>TEMPDIR</tt>, and <tt>TMP</tt> but these are used more commonly by non-[[POSIX]] [[operating system]]s.
Other forms sometimes accepted are <tt>TEMP</tt>, <tt>TEMPDIR</tt> and <tt>TMP</tt>, but these alternatives are used more commonly by non-[[POSIX]] [[operating system]]s or non-conformant programs.


<tt>TMPDIR</tt> is specified in various [[Unix]] and similar standards, e.g. per the [[Single UNIX Specification]].<ref>{{Cite web| url = http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap08.html#tag_08_03 | title = The Open Group Base Specifications Issue 7, IEEE Std 1003.1-2008, Base Definitions volume: Environment Variables: Other Environment Variables: TMPDIR | publisher = [[Open Group|The Open Group]] | accessdate = 2011-04-02}}</ref>
{{DEFAULTSORT:Tmpdir}}


==References==
{{Reflist}}


{{Unix-stub}}
{{Unix-stub}}

{{DEFAULTSORT:Tmpdir}}
[[Category:Computer file systems]]
[[Category:Unix]]
[[Category:Variable (computer programming)]]

Revision as of 06:58, 3 April 2011

TMPDIR is the canonical Unix environment variable that should be used to specify a temporary directory for scratch space. Most Unix programs will honor this setting and use its value to denote the scratch area for temporary files instead of the common default of /tmp[1][2] or /var/tmp[3].

Other forms sometimes accepted are TEMP, TEMPDIR and TMP, but these alternatives are used more commonly by non-POSIX operating systems or non-conformant programs.

TMPDIR is specified in various Unix and similar standards, e.g. per the Single UNIX Specification.[4]

References

  1. ^ "The Open Group Base Specifications Issue 7, IEEE Std 1003.1-2008, Base Definitions volume: Directory Structure and Files: /tmp". The Open Group. Retrieved 2011-04-02.
  2. ^ "Filesystem Hierarchy Standard, version is 2.3: /tmp: Temporary files". Linux Foundation. Retrieved 2010-06-13.
  3. ^ "Filesystem Hierarchy Standard, version is 2.3: /var/tmp: Temporary files preserved between system reboots". Linux Foundation. Retrieved 2010-06-13.
  4. ^ "The Open Group Base Specifications Issue 7, IEEE Std 1003.1-2008, Base Definitions volume: Environment Variables: Other Environment Variables: TMPDIR". The Open Group. Retrieved 2011-04-02.