mktemp Command Examples

Create a temporary file or directory. More information: https://man.openbsd.org/mktemp.1.

mktemp

mktemp -p {{/path/to/tempdir}}

mktemp {{/tmp/example.XXXXXXXX}}

mktemp -t {{example.XXXXXXXX}}

mktemp -d