mktemp

Create temporary files for use by shell scripts

Supplementary instructions

The mktemp command is used to create temporary files for use by shell scripts.

grammar

mktemp(options)(parameters)

Options

-q: If an error occurs during execution, no information will be displayed;
-u: The temporary files will be deleted before mktemp ends;
-d: Create a directory instead of a file.

Parameters

File: Specifies the temporary file to be created.