Skip to content

Instantly share code, notes, and snippets.

@juliendkim
Last active November 9, 2019 05:13
Show Gist options
  • Save juliendkim/ebb59aa0dc55913f2fc28e633a1785df to your computer and use it in GitHub Desktop.
Save juliendkim/ebb59aa0dc55913f2fc28e633a1785df to your computer and use it in GitHub Desktop.
Clear Mac Finder and Dock icon cache, and Reset Launchpad layout
$ 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 sudo rm -rfv {} \;
$ sleep 3
$ sudo touch /Applications/*
$ killall Dock
$ killall Finder
$ 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 sudo rm -rfv {} \; && sleep 3 && sudo touch /Applications/* && killall Dock && killall Finder
$ defaults write com.apple.dock ResetLaunchPad -bool true; killall Dock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment