Changing temporary file folder location in linux (for everything on the system)?

siliconpi picture siliconpi · Sep 27, 2010 · Viewed 17.6k times · Source

Currently its /tmp

How can I set it to /anythingelse so that all applications use that subsequently?

Answer

Matt Joiner picture Matt Joiner · Sep 27, 2010
sudo rmdir /tmp && ln -s /some/other/loc /tmp

Alternatively, set the environment variable TMPDIR at the highest level possible. For the environment, or per user.