Jump to content

mktemp

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by DarkNight0917 (talk | contribs) at 00:46, 4 July 2023 (Adding local short description: "Unix command", overriding Wikidata description "Unix command to create a temporary file or directory"). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

mktemp
Developer(s)Todd Miller, Jim Meyering
Initial release1997; 27 years ago (1997)
Written inC
Operating systemUnix and Unix-like
PlatformCross-platform
TypeCommand

mktemp is a command available in many Unix-like operating systems that creates a temporary file or directory.[1] Originally released in 1997 as part of OpenBSD 2.1,[2] a separate implementation exists as a part of GNU Coreutils.[3]

There used to be a similar named C library function, which is now deprecated for being unsafe, and has safer alternatives.[4]

See also

References

  1. ^ "mktemp". Linux Standard Base Core Specification 3.1. Free Standards Group. Retrieved 7 November 2015.
  2. ^ Miller, Todd C. "mktemp manual page". Retrieved 7 November 2015.
  3. ^ Meyering, Jim (7 October 2007). "announce: new program: mktemp" (Mailing list). Retrieved 7 November 2015.
  4. ^ "Temporary Files". GNU. GNU. Retrieved 2 September 2019.