The mktemp utility takes the given filename template and overwrites a portion of it to create a unique filename. The template may be any filename with some number of `Xs' appended to it, for example /tmp/tfile.XXXXXXXXXX. It is used by scripts to safely generate temporary files and directories.