# How to change the prefix to SAGE_TMP?

`SAGE_TMP`

looks something like this by default: `/tmp/tmpGMP2PR`

. My /tmp is full but I have plenty of space in a different tmp directory on another disk. How can I change the default prefix in `SAGE_TMP`

from `/tmp`

to, say, `/raid/scratch`

?

Thanks.

Which version of Sage are you using? For me the temporary directory is in home/.sage/temp/... This is what you can see from

On the other hand, if you are using the Sage notebook it does also uses some temporary directory which is I guess in

/tmp/by default.I am using v6.4.1.

`~/.sage/temp/`

is different. If I run a Notebook session, its files are stored under`~/.sage/notebook/...`

but while a Sage calculation is running all the files there are just links to`/tmp/something`

where`/tmp/something`

is the value of`SAGE_TMP`

in that session. I am saving large objects via the`save()`

command and that's where I have the problem, because they can't fit in`/tmp`

. There has got to be a way in Sage to set the prefix for SAGE_TMP from`/tmp`

to something else.