Skip to content

Instantly share code, notes, and snippets.

@cedeber
Forked from fabiofl/gist:5873100
Last active October 3, 2018 07:16
Show Gist options
  • Save cedeber/b24f448253985e66e4ff to your computer and use it in GitHub Desktop.
Save cedeber/b24f448253985e66e4ff to your computer and use it in GitHub Desktop.
Clear Mac OS X's icon cache.
# See https://developer.apple.com/library/archive/documentation/Security/Conceptual/System_Integrity_Protection_Guide/ConfiguringSystemIntegrityProtection/ConfiguringSystemIntegrityProtection.html
# csrutil disable and enable (Cmd+R on reboot)
# https://furbo.org/2015/01/19/clearing-the-icon-services-cache-in-yosemite/
sudo find /private/var/folders/ -name com.apple.dock.iconcache -exec rm {} \;
sudo find /private/var/folders/ -name com.apple.iconservices -exec rm -rf {} \;
sudo rm -rf /Library/Caches/com.apple.iconservices.store
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment