Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Command to get the "temp folder" in Linux [duplicate]

Tags:

linux

Possible Duplicate:
How do I find the 'temp' directory in Linux?

GetTempPath will return the temp folder path in Windows. Is there any equivalent command to get the temp folder path in Linux?

like image 751
Sandy Avatar asked Oct 22 '22 15:10

Sandy


1 Answers

On linux there are 2 fixed locations: /tmp - wiped on reboot, and /var/tmp - not wiped. Some application also respect TMP environment variable. See also mktemp command.

like image 154
Leonid Volnitsky Avatar answered Oct 26 '22 23:10

Leonid Volnitsky