Skip to content

Instantly share code, notes, and snippets.

@ismyrnow
Created May 5, 2017 19:28
Show Gist options
  • Select an option

  • Save ismyrnow/e92c6010cda9325b2d8811387a05f224 to your computer and use it in GitHub Desktop.

Select an option

Save ismyrnow/e92c6010cda9325b2d8811387a05f224 to your computer and use it in GitHub Desktop.
Clear the icon cache on a Mac when you start seeing generic icons in Finder or the Dock
sudo rm -rfv /Library/Caches/com.apple.iconservices.store; sudo find /private/var/folders/ \( -name com.apple.dock.iconcache -or -name com.apple.iconservices \) -exec rm -rfv {} \; ; sleep 3;sudo touch /Applications/* ; killall Dock; killall Finder
@tmcintos

Copy link
Copy Markdown

Worked for me on 14.5 beta on M2 MBA. Thanks!

@josepcrespo

josepcrespo commented Jun 19, 2024 •

Copy link
Copy Markdown

Running the sudo rm -rfv /Library/Caches/com.apple.iconservices.store command was enough for me (plus running sudo killall Dock; killall Finder). It makes sense to remove a cache. On the other side, I see very dangerous to remove anything from inside the /private/ folder, which is a sensible folder for the stability of the operating system.

@TT2TER

TT2TER commented Jan 5, 2025

Copy link
Copy Markdown

Running the sudo rm -rfv /Library/Caches/com.apple.iconservices.store command was enough for me (plus running sudo killall Dock; killall Finder). It makes sense to remove a cache. On the other side, I see very dangerous to remove anything from inside the /private/ folder, which is a sensible folder for the stability of the operating system.运行sudo rm -rfv /Library/Caches/com.apple.iconservices.store命令对我来说就足够了(加上运行sudo killall Dock; killall Finder )。删除缓存是有意义的。另一方面,我认为从/private/文件夹中删除任何内容是非常危险的,该文件夹对于操作系统的稳定性来说是一个明智的文件夹。

You are right! By following your method, I fixed Cursor icon after uninstall it!

@yyuuttaaoo

Copy link
Copy Markdown

Like a charm! Freed up 100GB of disk space. Thanks a lot!

@itsjoshpark

Copy link
Copy Markdown

Running the sudo rm -rfv /Library/Caches/com.apple.iconservices.store command was enough for me (plus running sudo killall Dock; killall Finder). It makes sense to remove a cache. On the other side, I see very dangerous to remove anything from inside the /private/ folder, which is a sensible folder for the stability of the operating system.

Can confirm this helped fix incorrect specular highlights in Spotlight on macOS Golden Gate.

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