Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

8
  • The OP addressed this issue in a now-deleted comment ; I'm afraid I cannot provide an answer for systems which require gitbash to get a shell interface, hence my "slightly". I would actually be unable to tell where temp files are stored on a Windows system... Commented Dec 18, 2014 at 13:06
  • 1
    ditto that. Some crazy c:\User\Name\..............\stuff. And there are probably 100 of them. Still, some linux distros are approaching the same level of madness in /var. I was just curious. It struck me as an odd way to put it is all - in my experience frustration is very portable, and convenience less so. Very good answer anyway. Commented Dec 18, 2014 at 13:10
  • 1
    A year or so ago I wrote a Bash script to manipulate Windows Restore Point files that works on Win2K through to WinXP (later versions handle that stuff differently). My script uses WINDOWS/Temp or Windows/Temp as the default directory for its temp files; that directory also exists on Windows 7 machines. But my script allows the user to supply an alternate temp dir on the command line. Commented Dec 18, 2014 at 13:53
  • This wouldn't work on OS X, as you have to supply a template to mktemp. Commented Dec 24, 2014 at 20:50
  • 2
    Since El Capitan, mktemp just works: simple mktemp returns a file, and mktemp -d returns a directory; no templates required. The manual is not updated though. Commented Apr 30, 2017 at 4:18