1MKTEMP(1)                        User Commands                       MKTEMP(1)
2
3
4

NAME

6       mktemp - create a temporary file or directory
7

SYNOPSIS

9       mktemp [OPTION]... [TEMPLATE]
10

DESCRIPTION

12       Create a temporary file or directory, safely, and print its name.  TEM‐
13       PLATE must contain at least 3 consecutive 'X's in last  component.   If
14       TEMPLATE is not specified, use tmp.XXXXXXXXXX, and --tmpdir is implied.
15       Files are created u+rw, and directories  u+rwx,  minus  umask  restric‐
16       tions.
17
18       -d, --directory
19              create a directory, not a file
20
21       -u, --dry-run
22              do not create anything; merely print a name (unsafe)
23
24       -q, --quiet
25              suppress diagnostics about file/dir-creation failure
26
27       --suffix=SUFF
28              append  SUFF  to  TEMPLATE; SUFF must not contain a slash.  This
29              option is implied if TEMPLATE does not end in X
30
31       -p DIR, --tmpdir[=DIR]
32              interpret TEMPLATE relative to DIR; if DIR is not specified, use
33              $TMPDIR  if set, else /tmp.  With this option, TEMPLATE must not
34              be an absolute  name;  unlike  with  -t,  TEMPLATE  may  contain
35              slashes, but mktemp creates only the final component
36
37       -t     interpret  TEMPLATE as a single file name component, relative to
38              a directory: $TMPDIR, if set; else the directory  specified  via
39              -p; else /tmp [deprecated]
40
41       --help display this help and exit
42
43       --version
44              output version information and exit
45
46       GNU  coreutils  online  help:  <http://www.gnu.org/software/coreutils/>
47       Report mktemp translation bugs to <http://translationproject.org/team/>
48

AUTHOR

50       Written by Jim Meyering and Eric Blake.
51
53       Copyright © 2013 Free Software Foundation, Inc.   License  GPLv3+:  GNU
54       GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
55       This  is  free  software:  you  are free to change and redistribute it.
56       There is NO WARRANTY, to the extent permitted by law.
57

SEE ALSO

59       mkstemp(3), mkdtemp(3), mktemp(3)
60
61       The full documentation for mktemp is maintained as  a  Texinfo  manual.
62       If  the  info  and mktemp programs are properly installed at your site,
63       the command
64
65              info coreutils 'mktemp invocation'
66
67       should give you access to the complete manual.
68
69
70
71GNU coreutils 8.22               October 2018                        MKTEMP(1)
Impressum