1
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.35.
2
.TH MKTEMP "1" "October 2012" "GNU coreutils 8.20" "User Commands"
4
mktemp \- create a temporary file or directory
7
[\fIOPTION\fR]... [\fITEMPLATE\fR]
9
.\" Add any additional description here
11
Create a temporary file or directory, safely, and print its name.
12
TEMPLATE must contain at least 3 consecutive 'X's in last component.
13
If TEMPLATE is not specified, use tmp.XXXXXXXXXX, and \fB\-\-tmpdir\fR is implied.
14
Files are created u+rw, and directories u+rwx, minus umask restrictions.
16
\fB\-d\fR, \fB\-\-directory\fR
17
create a directory, not a file
19
\fB\-u\fR, \fB\-\-dry\-run\fR
20
do not create anything; merely print a name (unsafe)
22
\fB\-q\fR, \fB\-\-quiet\fR
23
suppress diagnostics about file/dir\-creation failure
25
\fB\-\-suffix\fR=\fISUFF\fR
26
append SUFF to TEMPLATE. SUFF must not contain slash.
27
This option is implied if TEMPLATE does not end in X.
29
\fB\-\-tmpdir\fR[=\fIDIR\fR]
30
interpret TEMPLATE relative to DIR. If DIR is not
31
specified, use $TMPDIR if set, else /tmp. With
32
this option, TEMPLATE must not be an absolute name.
33
Unlike with \fB\-t\fR, TEMPLATE may contain slashes, but
34
mktemp creates only the final component
37
use DIR as a prefix; implies \fB\-t\fR [deprecated]
40
interpret TEMPLATE as a single file name component,
41
relative to a directory: $TMPDIR, if set; else the
42
directory specified via \fB\-p\fR; else /tmp [deprecated]
45
display this help and exit
48
output version information and exit
50
Written by Jim Meyering and Eric Blake.
52
Report mktemp bugs to bug\-coreutils@gnu.org
54
GNU coreutils home page: <http://www.gnu.org/software/coreutils/>
56
General help using GNU software: <http://www.gnu.org/gethelp/>
58
Report mktemp translation bugs to <http://translationproject.org/team/>
60
Copyright \(co 2012 Free Software Foundation, Inc.
61
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
63
This is free software: you are free to change and redistribute it.
64
There is NO WARRANTY, to the extent permitted by law.
66
mkstemp(3), mkdtemp(3), mktemp(3)
68
The full documentation for
70
is maintained as a Texinfo manual. If the
74
programs are properly installed at your site, the command
76
.B info coreutils \(aqmktemp invocation\(aq
78
should give you access to the complete manual.