| 1 |
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.50.1. |
| 2 |
.TH MKTEMP "1" "June 2025" "GNU coreutils 9.7" "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 |
\fB\-d\fR, \fB\-\-directory\fR |
| 17 |
create a directory, not a file |
| 18 |
.TP |
| 19 |
\fB\-u\fR, \fB\-\-dry\-run\fR |
| 20 |
do not create anything; merely print a name (unsafe) |
| 21 |
.TP |
| 22 |
\fB\-q\fR, \fB\-\-quiet\fR |
| 23 |
suppress diagnostics about file/dir\-creation failure |
| 24 |
.TP |
| 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 |
| 28 |
.TP |
| 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 |
| 35 |
.TP |
| 36 |
\fB\-t\fR |
| 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] |
| 40 |
.TP |
| 41 |
\fB\-\-help\fR |
| 42 |
display this help and exit |
| 43 |
.TP |
| 44 |
\fB\-\-version\fR |
| 45 |
output version information and exit |
| 46 |
.SH AUTHOR |
| 47 |
Written by Jim Meyering and Eric Blake. |
| 48 |
.SH "REPORTING BUGS" |
| 49 |
GNU coreutils online help: <https://www.gnu.org/software/coreutils/> |
| 50 |
.br |
| 51 |
Report any translation bugs to <https://translationproject.org/team/> |
| 52 |
.SH "SEE ALSO" |
| 53 |
\fBmkstemp\fP(3), \fBmkdtemp\fP(3), \fBmktemp\fP(3) |
| 54 |
.PP |
| 55 |
.br |
| 56 |
Full documentation <https://www.gnu.org/software/coreutils/mktemp> |
| 57 |
.br |
| 58 |
or available locally via: info \(aq(coreutils) mktemp invocation\(aq |
| 59 |
.PP |
| 60 |
.br |
| 61 |
Packaged by Debian (9.7\-3) |
| 62 |
.br |
| 63 |
Copyright \(co 2025 Free Software Foundation, Inc. |
| 64 |
.br |
| 65 |
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>. |
| 66 |
.br |
| 67 |
This is free software: you are free to change and redistribute it. |
| 68 |
.br |
| 69 |
There is NO WARRANTY, to the extent permitted by law. |