mirror of https://github.com/CrimsonTome/tldr.git
mktemp: add page (#7893)
parent
c23e529ad2
commit
3f6f191892
|
@ -1,7 +1,7 @@
|
|||
# mktemp
|
||||
|
||||
> Create a temporary file or directory.
|
||||
> More information: <https://www.gnu.org/software/autogen/mktemp.html>.
|
||||
> More information: <https://ss64.com/osx/mktemp.html>.
|
||||
|
||||
- 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`
|
||||
|
|
|
@ -0,0 +1,16 @@
|
|||
# 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`
|
Loading…
Reference in New Issue