Examples (5)
Create an empty temporary file and print its absolute path
Use a custom directory if `$TMPDIR` is not set (the default is platform-dependent, but usually `/tmp`)
mktemp -p /path/to/temporary_directoryUse a custom path template (`X`s are replaced with random alphanumeric characters)
mktemp /tmp/example.XXXXXXXXUse a custom file name template
mktemp -t example.XXXXXXXXCreate an empty temporary directory and print its absolute path
mktemp -dmade by @shridhargupta | data from tldr-pages