106 lines
3.5 KiB
HTML
106 lines
3.5 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of MKTEMP</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>MKTEMP</H1>
|
|
Section: User Commands (1)<BR>Updated: September 2019<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
mktemp - create a temporary file or directory
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<B>mktemp</B>
|
|
|
|
[<I>,OPTION/</I>]... [<I>,TEMPLATE/</I>]
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
|
|
<P>
|
|
|
|
Create a temporary file or directory, safely, and print its name.
|
|
TEMPLATE must contain at least 3 consecutive 'X's in last component.
|
|
If TEMPLATE is not specified, use tmp.XXXXXXXXXX, and <B>--tmpdir</B> is implied.
|
|
Files are created u+rw, and directories u+rwx, minus umask restrictions.
|
|
<DL COMPACT>
|
|
<DT id="1"><B>-d</B>, <B>--directory</B><DD>
|
|
create a directory, not a file
|
|
<DT id="2"><B>-u</B>, <B>--dry-run</B><DD>
|
|
do not create anything; merely print a name (unsafe)
|
|
<DT id="3"><B>-q</B>, <B>--quiet</B><DD>
|
|
suppress diagnostics about file/dir-creation failure
|
|
<DT id="4"><B>--suffix</B>=<I>,SUFF/</I><DD>
|
|
append SUFF to TEMPLATE; SUFF must not contain a slash.
|
|
This option is implied if TEMPLATE does not end in X
|
|
<DT id="5"><B>-p</B> DIR, <B>--tmpdir</B>[=<I>,DIR/</I>]<DD>
|
|
interpret TEMPLATE relative to DIR; if DIR is not
|
|
specified, use $TMPDIR if set, else <I>,/tmp/</I>. With
|
|
this option, TEMPLATE must not be an absolute name;
|
|
unlike with <B>-t</B>, TEMPLATE may contain slashes, but
|
|
mktemp creates only the final component
|
|
<DT id="6"><B>-t</B><DD>
|
|
interpret TEMPLATE as a single file name component,
|
|
relative to a directory: $TMPDIR, if set; else the
|
|
directory specified via <B>-p</B>; else <I>,/tmp/</I> [deprecated]
|
|
<DT id="7"><B>--help</B><DD>
|
|
display this help and exit
|
|
<DT id="8"><B>--version</B><DD>
|
|
output version information and exit
|
|
</DL>
|
|
<A NAME="lbAE"> </A>
|
|
<H2>AUTHOR</H2>
|
|
|
|
Written by Jim Meyering and Eric Blake.
|
|
<A NAME="lbAF"> </A>
|
|
<H2>REPORTING BUGS</H2>
|
|
|
|
GNU coreutils online help: <<A HREF="https://www.gnu.org/software/coreutils/">https://www.gnu.org/software/coreutils/</A>>
|
|
<BR>
|
|
|
|
Report mktemp translation bugs to <<A HREF="https://translationproject.org/team/">https://translationproject.org/team/</A>>
|
|
<A NAME="lbAG"> </A>
|
|
<H2>COPYRIGHT</H2>
|
|
|
|
Copyright © 2018 Free Software Foundation, Inc.
|
|
License GPLv3+: GNU GPL version 3 or later <<A HREF="https://gnu.org/licenses/gpl.html">https://gnu.org/licenses/gpl.html</A>>.
|
|
<BR>
|
|
|
|
This is free software: you are free to change and redistribute it.
|
|
There is NO WARRANTY, to the extent permitted by law.
|
|
<A NAME="lbAH"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
<A HREF="/cgi-bin/man/man2html?3+mkstemp">mkstemp</A>(3), <A HREF="/cgi-bin/man/man2html?3+mkdtemp">mkdtemp</A>(3), <A HREF="/cgi-bin/man/man2html?3+mktemp">mktemp</A>(3)
|
|
<P>
|
|
|
|
<BR>
|
|
|
|
Full documentation at: <<A HREF="https://www.gnu.org/software/coreutils/mktemp">https://www.gnu.org/software/coreutils/mktemp</A>>
|
|
<BR>
|
|
|
|
or available locally via: info '(coreutils) mktemp invocation'
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="9"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="10"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="11"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="12"><A HREF="#lbAE">AUTHOR</A><DD>
|
|
<DT id="13"><A HREF="#lbAF">REPORTING BUGS</A><DD>
|
|
<DT id="14"><A HREF="#lbAG">COPYRIGHT</A><DD>
|
|
<DT id="15"><A HREF="#lbAH">SEE ALSO</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:05:19 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|