MKTEMP(1) | General Commands Manual | MKTEMP(1) |
mktemp
— make
temporary file name
mktemp |
[-dqtu ] [-p
directory] [template] |
mktemp
utility creates a temporary file with a
unique file name by overwriting the trailing
‘Xs
’ from
template, and writes the resulting file name to the
standard output. If template is absent, it defaults to
tmp.XXXXXXXXXX and the -t
option is implied.
-d
-p
directoryTMPDIR
environment variable if it is set.
This option implies the -t
option.-q
-t
-u
TMPDIR
-t
option is specified.The mktemp
utility exits 0 on
success, and >0 if an error occurs.
Specifying the -u
option introduces a race
condition.
December 29, 2019 | EltaninOS |