2

How to create a temporary directory under a directory. I tried mktemp -d -p but unable to figure out how to create temp directory under a give directory.

Please provide example with mktemp

kanna
  • 1,412
  • 1
  • 15
  • 33

1 Answers1

1

Try this with mktemp from coreutils:

mktemp -d -p /path/to/dir
Cyrus
  • 84,225
  • 14
  • 89
  • 153