mktemp โ€” Create a temporary file or directory. # source: tldr ยท verified Examples: # Create an empty temporary file and print its absolute path [GNU] $ mktemp # Use a custom directory (defaults to `$TMPDIR`, or `/tmp`) [GNU] $ mktemp [-p |--tmpdir=]/path/to/temporary_directory # Use a custom path template (`X`s are replaced with random alphanumeric characters) [GNU] $ mktemp /tmp/example.XXXXXXXX # โœŽ Wrong or incomplete? Improve this page โ†’ https://curlhub.sh/man/mktemp