Skip to content

Instantly share code, notes, and snippets.

@GrahamWalters
Created June 24, 2013 09:21
Show Gist options
  • Save GrahamWalters/5848822 to your computer and use it in GitHub Desktop.
Save GrahamWalters/5848822 to your computer and use it in GitHub Desktop.
Reset QuickLook Thumbnail Cache: Open Terminal and run the following commands
sudo find /var/folders/ -name com.apple.QuickLook.thumbnailcache -type d
# Enter your password and hit enter (it will not display your password).
cd COPY-AND-PAST-THE-ABOVE-OUTPUT-HERE
cd ../
sudo mv com.apple.QuickLook.thumbnailcache com.apple.QuickLook.thumbnailcache-BACK
# Restart your computer.
### If anything goes wrong run the following:
sudo find /var/folders/ -name com.apple.QuickLook.thumbnailcache-BACK -type d
cd COPY-AND-PAST-THE-ABOVE-OUTPUT-HERE
cd ../
sudo mv com.apple.QuickLook.thumbnailcache-BACK com.apple.QuickLook.thumbnailcache
@texereda
Copy link

texereda commented Jun 20, 2018

There's no need to use sudo and run a find, the directory can be found like this:
cd $TMPDIR/../C/com.apple.QuickLook.thumbnailcache/

so you can simply execute:
cd $TMPDIR/../C/com.apple.QuickLook.thumbnailcache/..

@gibatronic
Copy link

There's no need for that, QuickLook has a command for it:

qlmanage -r cache

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment