Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have noticed that thumbnails on Mac OS X don't seem to be generated every time I open a folder, but to be somehow "cached" instead.

I wasn't able, however, to find a folder where they clearly look to be stored.

I thought then they could be saved as some kind of metadata; i found, however, that when deleting a file (e.g. from the Desktop) and saving immediately after a file by the same name, the preview for the previous file is showed for ~ a second.

Are they stored separately from data? How and when are they invalidated (e.g. only when a file by the same name appears in the same directory)?

share|improve this question
Probably in the infamous .DS_Store file in the same directory. – Daniel Beck Oct 19 '12 at 15:51
I also took this as a possibility, however it doesn't seem to contain anything about the thumbnails. – user166442 Oct 19 '12 at 16:03
up vote 3 down vote accepted

The quicklookd background process is responsible for creating and managing file thumbnails. Those thumbnails are stored in a folder named in a folder like /var/folders/39/ggldtdps6034ct7d_y6x4_v80000gn/C that is specific to your user account. The file index.sqlite contains a SQLite database with information about stored thumbnails; access it using the sqlite3 command line tool.

share|improve this answer
Great! I was able to dump the index.sqlite db, take a look and get an insight of how this works! Thanks :) – user166442 Oct 19 '12 at 17:17

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.