[GTALUG] suggestion: naming temp files

John Sellens jsellens at syonex.com
Tue Apr 17 12:32:47 EDT 2018


| > Many people use tmp, tmp2, tmp3 as names.  I find those visually too like
| > real filenames and longer to type than I want.  The names I use are 0, 1,
| > 2, 3.  They are short, distinctive, and unreasonable as permanent
| > filenames.
| 
| Why not use mktemp? "man mktemp" for information about templates, suffixes etc.

Or in your .cshrc or .bashrc something like
    mkdir -m 700 -p /tmp/me
    tmp="/tmp/me"
    export TMPDIR=/tmp/me

I'm far too lazy to want to have to remember to clean up after myself.

John


More information about the talk mailing list