How to change default tmp location in Ubuntu?
I am using Ubuntu for my applications. I have seen that many APIs store their tmp files in /tmp folder.
In my Ubuntu, total space assigned to root is hardly 4 GB. Which is why I have to keep cleaning the /tmp folder to avoid disk space error.
Can I change /tmp to some other partition and allocate more space to it ?
UPDATE:
I have considered resizing partitions, but I can not risk data loss. Also, I can not risk impacting other applications which might have some data in /tmp folder.
As of now, I am using shell script to clean it every 10 minutes.