Debian Codegraph @

upstream/debian-unstable/man1/mktemp.1

raw
1 .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.50.1.
2 .TH MKTEMP "1" "February 2026" "GNU coreutils 9.10" "User Commands"
3 .SH NAME
4 mktemp \- create a temporary file or directory
5 .SH SYNOPSIS
6 .B mktemp
7 [\fI\,OPTION\/\fR]... [\fI\,TEMPLATE\/\fR]
8 .SH DESCRIPTION
9 .\" Add any additional description here
10 .PP
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.
15 .TP
16 \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#mktemp-d'\fB\-d, \-\-directory\fP\X'tty: link'
17 create a directory, not a file
18 .TP
19 \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#mktemp-u'\fB\-u, \-\-dry\-run\fP\X'tty: link'
20 do not create anything; merely print a name (unsafe)
21 .TP
22 \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#mktemp-q'\fB\-q, \-\-quiet\fP\X'tty: link'
23 suppress diagnostics about file/dir\-creation failure
24 .TP
25 \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#mktemp--suffix'\fB\-\-suffix=SUFF\fP\X'tty: link'
26 append SUFF to TEMPLATE; SUFF must not contain a slash.
27 This option is implied if TEMPLATE does not end in X
28 .TP
29 \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#mktemp-p'\fB\-p DIR, \-\-tmpdir[=\,DIR]\fP\X'tty: link'\/\fR
30 interpret TEMPLATE relative to DIR;
31 if DIR is not specified, use $TMPDIR if set, else \fI\,/tmp\/\fP.
32 With this option, TEMPLATE must not be an absolute name;
33 unlike with \fB\-t\fR, TEMPLATE may contain slashes,
34 but mktemp creates only the final component
35 .TP
36 \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#mktemp-t'\fB\-t\fP\X'tty: link'
37 interpret TEMPLATE as a single file name component,
38 relative to a directory: $TMPDIR, if set;
39 else the directory specified via \fB\-p\fR; else \fI\,/tmp\/\fP [deprecated]
40 .TP
41 \X'tty: link https://www.gnu.org/software/coreutils/mktemp#mktemp--help'\fB\-\-help\fP\X'tty: link'
42 display this help and exit
43 .TP
44 \X'tty: link https://www.gnu.org/software/coreutils/mktemp#mktemp--version'\fB\-\-version\fP\X'tty: link'
45 output version information and exit
46 .SH AUTHOR
47 Written by Jim Meyering and Eric Blake.
48 .SH "REPORTING BUGS"
49 Report bugs to: bug\[email protected]
50 .br
51 GNU coreutils home page: <https://www.gnu.org/software/coreutils/>
52 .br
53 General help using GNU software: <https://www.gnu.org/gethelp/>
54 .br
55 Report any translation bugs to <https://translationproject.org/team/>
56 .SH "SEE ALSO"
57 \fBmkstemp\fP(3), \fBmkdtemp\fP(3), \fBmktemp\fP(3)
58 .PP
59 .br
60 Full documentation <https://www.gnu.org/software/coreutils/mktemp>
61 .br
62 or available locally via: info \(aq(coreutils) mktemp invocation\(aq
63 .PP
64 .br
65 Packaged by Debian (9.10\-1)
66 .br
67 Copyright \(co 2026 Free Software Foundation, Inc.
68 .br
69 License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
70 .br
71 This is free software: you are free to change and redistribute it.
72 .br
73 There is NO WARRANTY, to the extent permitted by law.