3 ms·
Also, don't assume /tmp is the right directory. Always read the $TMP environment variable.
by lobster_johnson 11y ago
Also, don't assume /tmp is the right directory. Always read the $TMP environment variable.
- LukeShu 11y agoRead $TMPDIR. If you are feeling generous, then check $TMP if $TMPDIR isn't set. On that note, you may also be interested in $XDG_RUNTIME_DIR (complex-ish semantics) or $XDG_CACHE_HOME (Default: ~/.cache/)