How can I get the temporary directory path in Ubuntu?
From the command line:
$ tempfile | xargs dirname /tmp $ TMPDIR="/mnt/tmp" tempfile | xargs dirname /mnt/tmp