Linux – making /tmp/info-html*.tmp files and how to stop it

linuxshelltmp

What is making /tmp/info-html*.tmp files and how do I stop it or configure it to clean these up and/or make these somewhere else?

For example,

# ll /tmp/info-html*
-rw-r--r-- 1 user user 0 Oct 30  2014 /tmp/info-html.tmp
-rw-r--r-- 1 user user 0 Oct 30  2014 /tmp/info-html1.tmp
-rw-r--r-- 1 user user 0 Oct 30  2014 /tmp/info-html2.tmp
...

These accumulate very quickly and are always empty when I see them.

Best Answer

Instead of cleaning up after the fact, you should probably monitor the spot with lsof to determine what is writing the files and figure out how to stop it:

lsof +d /tmp/ -r 1 | grep "info-html"

Alternatively, you could set up some form of auditing on that directory, but it may get really chatty.