Mktemp: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 12: Line 12:


creates a /var/folders/t3/mmn20npx7fs31lwlp2s4_6wm0000gq/T/tmp.hbvowAQL file on Mac.
creates a /var/folders/t3/mmn20npx7fs31lwlp2s4_6wm0000gq/T/tmp.hbvowAQL file on Mac.
<font color=darkgray>Who's responsibility is to delete it? It is deleted automatically?</font>


=Options=
=Options=

Revision as of 01:04, 16 April 2021

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.

Who's responsibility is to delete it? It is deleted automatically?

Options

-d

mktemp -d

Create a temporary directory.