tldr/pages/linux/mktemp.md

17 lines
411 B
Markdown
Raw Normal View History

2022-03-16 17:02:09 +00:00
# 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:
`mktemp --directory`