1 .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.3.
2 .TH MKTEMP "1" "January 2016" "GNU coreutils 8.25" "User Commands"
4 mktemp \- create a temporary file or directory
7 [\fI\,OPTION\/\fR]... [\fI\,TEMPLATE\/\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=\fI\,SUFF\/\fR
26 append SUFF to TEMPLATE; SUFF must not contain a slash.
27 This option is implied if TEMPLATE does not end in X
29 \fB\-p\fR DIR, \fB\-\-tmpdir\fR[=\fI\,DIR\/\fR]
30 interpret TEMPLATE relative to DIR; if DIR is not
31 specified, use $TMPDIR if set, else \fI\,/tmp\/\fP. 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 interpret TEMPLATE as a single file name component,
38 relative to a directory: $TMPDIR, if set; else the
39 directory specified via \fB\-p\fR; else \fI\,/tmp\/\fP [deprecated]
42 display this help and exit
45 output version information and exit
47 Written by Jim Meyering and Eric Blake.
49 GNU coreutils online help: <http://www.gnu.org/software/coreutils/>
51 Report mktemp translation bugs to <http://translationproject.org/team/>
53 Copyright \(co 2016 Free Software Foundation, Inc.
54 License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
56 This is free software: you are free to change and redistribute it.
57 There is NO WARRANTY, to the extent permitted by law.
59 mkstemp(3), mkdtemp(3), mktemp(3)
62 Full documentation at: <http://www.gnu.org/software/coreutils/mktemp>
64 or available locally via: info \(aq(coreutils) mktemp invocation\(aq