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)

If you've owned multiple Apple devices over the years, you might find yourself in a situation where some of those older Macs, iPhones, iPads, or other Apple hardware have been sold, given away, or traded. No matter how they left your possession, it's

Fortnite is once again available for iPhone and iPad users, bringing joy to many gamers. However, there's still no official version for Mac (at least not yet). Despite that, Apple Silicon Mac owners aren’t completely out of luck—you can run the iOS/i

iCloud Private Relay is an excellent privacy feature included with the iCloud subscription, designed to safeguard your online activity and browsing by masking your IP address (using a temporary one) and encrypting DNS lookups. This prevents third pa

Are you using Screen Time to manage your or your child’s Mac usage? If yes, you likely already know that it allows you to set app limits, schedule downtime on the Mac, and more. Additionally, you can also choose specific apps that remain accessible a

macOS Sequoia is a solid operating system that brings some impressive features like iPhone Mirroring, and while performance is excellent for many users, not everyone experiences the same level of speed. If you're finding macOS Sequoia slower than pre

If you frequently use iMessage, then you've likely shared numerous web links in your chats — maybe an article, a video, a tweet, a song, or anything else. Locating these links later can be quite frustrating, but thankfully there's a simpler method th

Advanced Mac users familiar with the command line can swiftly set up a MacOS Tahoe 26 beta virtual machine by entering a few commands into Terminal, using tart. Tart is a command-line utility for managing virtual machines and offers one of the quicke

What is WindowServer and why is it importantWindowServer is a core macOS process that manages how apps and windows appear on screen. It handles GUI rendering, controls internal and external displays, and enables all vis
