Changing temp directory on Ubuntu

조회 수: 2 (최근 30일)
Seyed Ali Baradaran Birjandi
Seyed Ali Baradaran Birjandi 2019년 6월 13일
I had small disk space on my PC. Therefore, I added a new SATA hard drive to allocate more disk space to Matlab. The new hard drive is mounted on a dircetory called /hdd2TB/. I also changed the value of environment variable 'TMP' both in the /etc/environment file and using setenv() function. Now tempdir command returns:
'/hdd2TB/'
or in terminal:
echo $TMP
/hdd2TB/
Yet, /tmp/ directory grows in size when I run my simulations and /hdd2TB/ does not change.

채택된 답변

Seyed Ali Baradaran Birjandi
Seyed Ali Baradaran Birjandi 2019년 6월 13일
I found a workaround for the problem by making tmp directory a symbolic link to my new hard drive.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Install Products에 대해 자세히 알아보기

제품


릴리스

R2017b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by