Read $TMPDIR. If you are feeling generous, then check $TMP if $TMPDIR isn&#x27;t set.<p>On that note, you may also be interested in $XDG_RUNTIME_DIR (complex-ish semantics) or $XDG_CACHE_HOME (Default: ~&#x2F;.cache&#x2F;)