Changed path of /tmp folder is not reflected

I changed path of temporary folder from /tmp to a new path. I made these changes in /etc/environment file. I added following lines.

TEMP=”path to new folder”
TMPDIR=”path to new folder”

But still /tmp folder is being used as temporary folder.

The reason I want to change the path is because size of /tmp volume is very less.

Any reason why changes wouldn’t be reflected? Do I need to reboot the server?

Source: unix

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.