Mktemp

From NovaOrdis Knowledge Base
Revision as of 02:26, 21 January 2021 by Ovidiu (talk | contribs) (→‎Overview)
Jump to navigation Jump to search

Internal

Overview

Create a temporary file or directory and display its name at stdout.

local f=$(mktemp)

creates a /var/folders/t3/mmn20npx7fs31lwlp2s4_6wm0000gq/T/tmp.hbvowAQL file on Mac.

Options

-d

mktemp -d

Create a temporary directory.