Reset icon cache on MacBook I've been trying to find out how to reset the icon cache on my MacBook, and two methods seem to always be suggested. However, the two approaches differ slightly in the third line.

Method 1

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 mv /Library/Caches/com.apple.iconservices.store com.apple.ic


Method 2

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


What do these two approaches essentially do and what is the effect of the difference on line three? Is one method better than the other?
Be careful with Method 2, it seems will delete more files than it should do. I tried method 2 on my Macbook Air (El Capitan 10.11.6), causing it unable to boot. Had to recover from Timemachine backup.