Create a temporary file or directory. More information: https://keith.github.io/xcode-man-pages/mktemp.1.html.
mktemp
getconf DARWIN_USER_TEMP_DIR
, or /tmp
):mktemp --tmpdir={{/path/to/tempdir}}
X
s are replaced with random alphanumeric characters):mktemp {{/tmp/example.XXXXXXXX}}
mktemp -t {{example}}
mktemp --directory