I am new to Imagemagick and linux. How do I find temp folder of in linux. I am using Imagemagick with liferay. Answer The easiest way, is to look for any environment variables that you have set, e.g.: MAGICK_TEMPORARY_PATH MAGICK_TMPDIR by running: Else, if you haven’t set any environment variable, do something that will force ImageMagick to use disk. So,