From 3f6f1918925fb6d10299ea45b95373a266b1dac1 Mon Sep 17 00:00:00 2001 From: Emily Grace Seville Date: Thu, 17 Mar 2022 03:02:09 +1000 Subject: [PATCH] mktemp: add page (#7893) --- pages/common/mktemp.md | 4 ++-- pages/linux/mktemp.md | 16 ++++++++++++++++ 2 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 pages/linux/mktemp.md diff --git a/pages/common/mktemp.md b/pages/common/mktemp.md index 2a451da36..3373a12a9 100644 --- a/pages/common/mktemp.md +++ b/pages/common/mktemp.md @@ -1,7 +1,7 @@ # mktemp > Create a temporary file or directory. -> More information: . +> More information: . - Create an empty temporary file and print the absolute path to it: @@ -11,6 +11,6 @@ `mktemp --suffix "{{.ext}}"` -- Create a temporary directory and print the absolute path to it (non-portable long option: --directory): +- Create a temporary directory and print the absolute path to it: `mktemp -d` diff --git a/pages/linux/mktemp.md b/pages/linux/mktemp.md new file mode 100644 index 000000000..999e7c693 --- /dev/null +++ b/pages/linux/mktemp.md @@ -0,0 +1,16 @@ +# mktemp + +> Create a temporary file or directory. +> More information: . + +- 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`