Question: how tmp files are created?
Answer: These files are typically created by applications to store some form of temporary data, in a permanent form than RAM, on your hard disk. TMP files are commonly produced either when a program can't allocate enough memory for its tasks, or as part of inter-process communication.