mktemp creates a temporary file with optional base name prefix
prefix. If
prefix is omitted then
tmp_
is used and
--tmp is implied. If
prefix contains a directory prefix then that directory overrides any of the
directories described below. A temporary file will have mode
rw------- and a temporary directory will have mode
rwx------
, subject to
umask(1). Generated paths have these attributes:
- *
- Lower case to avoid clashes on case ignorant filesystems.
- *
- Pseudo-random part to deter denial of service attacks.
- *
- Default pseudo-random part (no specific X... template) formatted to accomodate 8.3 filesystems.
A consecutive trailing sequence of
X's in
prefix is replaced by the pseudo-random part. If there are no
X's
then the pseudo-random part is appended to the prefix.