mktemp is a command available in many Unix-like operating systems that creates a temporary file or directory. Originally released in 1997 as part of OpenBSD 2.1, a separate implementation exists as a part of GNU Coreutils.
There used to be a similar named C library function, which is now deprecated for being unsafe, and has safer alternatives.
See also
References
"mktemp". Linux Standard Base Core Specification 3.1. Free Standards Group. Retrieved 7 November 2015. http://refspecs.linuxbase.org/LSB_3.1.0/LSB-Core-generic/LSB-Core-generic/mktemp.html ↩
Miller, Todd C. "mktemp manual page". Retrieved 7 November 2015. https://www.mktemp.org/manual.html#6 ↩
Meyering, Jim (7 October 2007). "announce: new program: mktemp" (Mailing list). Retrieved 7 November 2015. https://lists.gnu.org/archive/html/bug-coreutils/2007-10/msg00051.html ↩
"Temporary Files". GNU. GNU. Retrieved 2 September 2019. https://www.gnu.org/software/libc/manual/html_node/Temporary-Files.html ↩