.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.35. .TH MKTEMP "1" "September 2011" "GNU coreutils 8.12.197-032bb" "User Commands" .SH NAME mktemp \- create a temporary file or directory .SH SYNOPSIS .B mktemp [\fIOPTION\fR]... [\fITEMPLATE\fR] .SH DESCRIPTION .\" Add any additional description here .PP 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 \fB\-\-tmpdir\fR is implied. Files are created u+rw, and directories u+rwx, minus umask restrictions. .TP \fB\-d\fR, \fB\-\-directory\fR create a directory, not a file .TP \fB\-u\fR, \fB\-\-dry\-run\fR do not create anything; merely print a name (unsafe) .TP \fB\-q\fR, \fB\-\-quiet\fR suppress diagnostics about file/dir\-creation failure .TP \fB\-\-suffix\fR=\fISUFF\fR append SUFF to TEMPLATE. SUFF must not contain slash. This option is implied if TEMPLATE does not end in X. .TP \fB\-\-tmpdir\fR[=\fIDIR\fR] interpret TEMPLATE relative to DIR. If DIR is not specified, use $TMPDIR if set, else /tmp. With this option, TEMPLATE must not be an absolute name. Unlike with \fB\-t\fR, TEMPLATE may contain slashes, but mktemp creates only the final component .TP \fB\-p\fR DIR use DIR as a prefix; implies \fB\-t\fR [deprecated] .TP \fB\-t\fR interpret TEMPLATE as a single file name component, relative to a directory: $TMPDIR, if set; else the directory specified via \fB\-p\fR; else /tmp [deprecated] .TP \fB\-\-help\fR display this help and exit .TP \fB\-\-version\fR output version information and exit .SH AUTHOR Written by Jim Meyering and Eric Blake. .SH "REPORTING BUGS" Report mktemp bugs to bug\-coreutils@gnu.org .br GNU coreutils home page: .br General help using GNU software: .br Report mktemp translation bugs to .SH COPYRIGHT Copyright \(co 2011 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later . .br This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. .SH "SEE ALSO" mkstemp(3), mkdtemp(3), mktemp(3) .PP The full documentation for .B mktemp is maintained as a Texinfo manual. If the .B info and .B mktemp programs are properly installed at your site, the command .IP .B info coreutils \(aqmktemp invocation\(aq .PP should give you access to the complete manual.