1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/mktemp.md
2022-01-26 23:22:54 +00:00

442 B

mktemp

Create a temporary file or directory. More information: https://www.gnu.org/software/autogen/mktemp.html.

  • Create an empty temporary file and print the absolute path to it:

mktemp

  • Create an empty temporary file with a given suffix and print the absolute path to file:

mktemp --suffix "{{.ext}}"

  • Create a temporary directory and print the absolute path to it (non-portable long option: --directory):

mktemp -d