mktemp

Name

mktemp -- make temporary file name (unique)

Synopsis

mktemp [-q] [-u] template

Description

The mktemp utility takes the given file name template and overwrites a portion of it to create a file name. This file name is unique and suitable for use by the application.

Options

-q

Fail silently if an error occurs. This is useful if a script does not want error output to go to standard error.

-u

Operate in `unsafe' mode. The temp file will be unlinked before mktemp exits. This is slightly better than mktemp(3) but still introduces a race condition. Use of this option is not encouraged.