Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to know where is the folder of temporary files in system. For example, in Windows is the folder:

C:\Documents and Settings\Administrador\Configuración local\Temp

share|improve this question
launchd and some other daemons use /private/tmp/ and /var/tmp for temporary files and sockets. /tmp is a symlink to /private/tmp. – jaume Jun 26 '13 at 14:16
Thanks friend! What is the difference between /private/tmp and /var/tmp?? – Alberto Juarez Jun 26 '13 at 14:24
As a general rule, /tmp is wiped upon reboot, while /var/tmp is not. – jaume Jun 26 '13 at 14:39

Your question has a false premise that there IS a "temp" folder. This isn't Windows, and the Unix architecture of Mac OS X is entirely different. Temp folder for what? For some low level junk, there's /tmp and /var/tmp. For Application preferences there's ~/Library/Preferences, for Application caches and temp files, there's ~/Library/Application\ Support.

A clearer answer would be possible if you specified the particular task you're trying to accomplish.

share|improve this answer
I think the OP is not trying to accomplish any task but rather wants to understand how OS X works. He's specifically asking for the equivalent of %USERPROFILE%\Local Settings\Temp (%USERPROFILE%\AppData\Local\Temp on Vista and newer), not %USERPROFILE%\AppData\Local\Temporary Internet Files or the like. That's probably /tmp (symlink to /private/tmp) and /var/tmp, the difference being that /tmp gets wiped clean at startup. I wouldn't say ~/Library/Application Support and ~/Library/Preferences are temp folders as apps use them to save persistent data like state and settings. – jaume Jun 27 '13 at 10:02

OS X stores it's file under /var folder. But to know which is the correct current path, use the $TMPDIR env variable.

Go on terminal and type echo $TMPDIR or open $TMPDIR (to open Finder on that path).

There you will find temp files stored by the Applications running.


share|improve this answer

/tmp is the general location for temporary files in Mac OS X, as well as most UNIX-like systems.

share|improve this answer
There is also $TMPDIR. – lhf Jun 26 '13 at 16:03
$TMPDIR is an environment variable that points to a temporary directory like /tmp, not a temporary directory itself. You can set $TMPDIR to any value you want (and it will work as long as the directory exists and has the sticky bit set). – jaume Jun 27 '13 at 10:21

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.