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
16       -d, --directory
17              create a directory, not a file
18
19       -u, --dry-run
20              do not create anything; merely print a name (unsafe)
21
22       -q, --quiet
23              suppress diagnostics about file/dir-creation failure
24
25       --suffix=SUFF
26              append  SUFF  to  TEMPLATE.   SUFF must not contain slash.  This
27              option is implied if TEMPLATE does not end in X.
28
29       --tmpdir[=DIR]
30              interpret TEMPLATE relative to DIR.  If DIR  is  not  specified,
31              use  $TMPDIR if set, else /tmp.  With this option, TEMPLATE must
32              not be an absolute name.  Unlike with -t, TEMPLATE  may  contain
33              slashes, but mktemp creates only the final component.
34
35       -p DIR use DIR as a prefix; implies -t [deprecated]
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

AUTHOR

47       Written by Jim Meyering and Eric Blake.
48

REPORTING BUGS

50       Report mktemp bugs to bug-coreutils@gnu.org
51       GNU coreutils home page: <http://www.gnu.org/software/coreutils/>
52       General help using GNU software: <http://www.gnu.org/gethelp/>
53       Report mktemp translation bugs to <http://translationproject.org/team/>
54
56       Copyright  ©  2010  Free Software Foundation, Inc.  License GPLv3+: GNU
57       GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
58       This is free software: you are free  to  change  and  redistribute  it.
59       There is NO WARRANTY, to the extent permitted by law.
60

SEE ALSO

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