I am working on a project that stores output files in the Temp folder. In Windows I can search the Temp folder but I don't know the location of Temp folder in OS X.

Can you please guide me to the location of said folder?


You can use: echo $TMPDIR.

To open and browse the folder, use open $TMPDIR.



/tmp is also a temporary directory. Files are deleted from /tmp upon reboot.
To access it from Finder, use Command-G (Shift-Command-G in Mavericks) and enter /tmp in the dialogue box. From a terminal, just cd /tmp.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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