logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Create Temporary Files - mktemp Command | Online Free DevTools by Hexmos

Create temporary files instantly with mktemp. Manage temporary file paths and directories with this command-line tool. Free online tool, no registration required.

mktemp

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

  • Create an empty temporary file and print its absolute path:

mktemp

  • Use a custom directory if $TMPDIR is not set (the default is platform-dependent, but usually /tmp):

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

  • Use a custom path template (Xs are replaced with random alphanumeric characters):

mktemp {{/tmp/example.XXXXXXXX}}

  • Use a custom file name template:

mktemp -t {{example.XXXXXXXX}}

  • Create an empty temporary directory and print its absolute path:

mktemp -d

return

See Also