How do I find out the system temporary directory?
env


Just type this command into Terminal.  With zero arguments it'll print the names and values of variables in the environment.

Alternative with a bit more typing:

echo $TMPDIR