-p, --base-dir
Use DIR as the directory, like --tmpdir=DIR.
An option of mktempx.
Usage
mktempx -p DIR [TEMPLATE]
mktempx --base-dir=DIR [TEMPLATE]Details
| Short | Long | Value | Default | Meaning |
|---|---|---|---|---|
-p | --base-dir | DIR | use DIR as the directory, like --tmpdir=DIR |
Examples
Create it under a directory of your choice
mktempx -p out report.XXXXFail quietly and handle it yourself
mktempx -q -p /nonexistent || echox 'no temp dir'Help in the terminal
gnux help mktempx --base-dir