Sometimes, Mac users might observe that icons in the Finder of MacOS or the Dock of MacOS either appear as generic icons, or they don’t match what they should be (for instance, a generic document icon instead of a PDF thumbnail, or a VLC icon showing up for a zip archive, or even a default application icon rather than Safari's).
If you're facing an issue with how icons are displayed on your Mac, you can manually clear the icon cache. This action will prompt the system to rebuild the icon cache, which can resolve inaccuracies in how icons are shown.
How to Clear & Reset Icon Caches on Mac
Important: Since you’ll be using Terminal and executing rm commands, it’s wise to back up your Mac using Time Machine or another backup method before proceeding. A mistake in command entry could result in irreversible data loss, so ensure you use the exact syntax provided. If you’re not confident working with the command line, it may be best to avoid this process altogether.
Open the Terminal and input the following command, then press return: sudo rm -rfv /Library/Caches/com.apple.iconservices.store
Then, type the next command and hit return:
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
Afterwards, it is advisable to restart your Mac in Safe Mode, which clears various caches and triggers their refresh upon reboot. The procedure varies slightly depending on whether your Mac uses an Apple Silicon M chip or an Intel processor.
- For M1 Macs, click the ? Apple menu and select Shut Down. Wait approximately 10 seconds. Press and hold the Power button until the Options screen appears. Then, while holding down the Shift key, choose “Continue in Safe Mode” to boot your M-series Mac into Safe Mode.
- For Intel-based Macs, restart the computer and keep the Shift key pressed until the Login Screen appears, indicating that the Mac has booted into Safe Mode.
Once your Mac has started up in Safe Mode, leave it idle for around 5 minutes, then go to the ? APPLE menu and select “Restart” to reboot normally. This will refresh the icon caches along with several other system caches.
The sequence of terminal commands mentioned above was sourced from Github. While these commands alone may fix the problem for some users, our testing revealed that additionally restarting into Safe Mode helped address issues related to incorrect or generic icon display in both the MacOS Finder and Dock.
Did these steps resolve your icon display problems on the Mac? If you've discovered an alternative solution or prefer a different way to refresh the icon cache on your Mac, feel free to share your experience in the comments below.
The above is the detailed content of How to Clear Icon Cache on Mac. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undress AI Tool
Undress images for free

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

You’ve had your Mac for a few years, and you’re starting to feel the effects of your device aging—the battery doesn’t hold up as well as it used to. To avoid getting stuck with a dead Mac, you have no choice but to take your charger e

The Focus Modes functionality comes with several pre-set options such as Work, Driving, Sleep, and users are also free to create custom ones for any scenario imaginable. Should you find yourself not needing a multitude of Focus modes—whether because

If you trust Siri to accurately transcribe your speech into text and send it as a message, you can activate a setting that lets Siri send messages automatically from your iPhone without asking for confirmation first.With the confirmation feature enab

Have you ever received a long audio message on your iPhone and while listening, the screen turns off, interrupting the playback and forcing you to start over? It's pretty frustrating, isn't it?Next time you receive a lengthy voice message on your iPh

Some users of Mac computers running MacOS Sierra and MacOS High Sierra have reported issues when trying to log in to an Apple ID or iCloud via System Preferences, as well as problems accessing iCloud.com using Safari. In addition, Safari fails to loa

iOS 16 is now available for iPhone users, offering a solid update packed with practical features you're sure to enjoy.The most noticeable and exciting addition is the ability to personalize your lock screen. However, there are also plenty of smaller

In this blog post, we’ve gathered the 22 most significant breaches that happened back in 2017. All of the reports were conducted by Chris Vickery — a data breach hunter, who had partnered with MacKeeper to provide repor

Customizing your Mac by renaming it helps set it apart from other devices, especially when using AirDrop, and makes it easier to identify on a network.In macOS Ventura 13 and later versions, the method for changing the computer name has changed compa
