diff --git a/pages/common/mktemp.md b/pages/common/mktemp.md index 2a451da365..3373a12a93 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 0000000000..999e7c693d --- /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`