When one downloads a file using Firefox, the download seems to start before one even chooses a save directory. I would assume that Firefox assumes that I am most likely going to save said file, and starts downloading it ahead of time. However, I have a strange policy of downloading things to a filesystem in-memory (e.g. /dev/shm), and do not want even temporary files even touching my main disk. Where is this location on Linux (namely Debian)? Can it be changed?

P.S. This isn't really for security purposes.


In this post, it seems that Firefox uses the TMPDIR environment variable for the temporary location. I can't actually check at the moment, though, so is this really the case?


Here's how to change Firefox's behaviour so that it always prompts you to specify a target directory before initiating a download:

enter image description here

  • Well, yes, I knew that already, but it will still start downloading (probably to a temporary location somewhere) before I even tell it where to save said file. – Mona the Monad Dec 3 at 18:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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