Tune-up

What a Mac “tune-up” really does, step by step

“Optimise your Mac” sounds like one big fix that makes everything faster. In practice a tune-up is a handful of small resets, each of which fixes one kind of glitch: a Dock that won’t update, a broken Open With menu, Spotlight that can’t find a file you know is there.

None of them makes a healthy Mac faster. Any app that promises your Mac will be “300% faster” after a tune-up is selling you a feeling. But when something specific is misbehaving, the right reset fixes it in seconds, without a full restart.

Here are the eleven real fixes, what each one is for, and the command to run it yourself in Terminal.

Fix glitches in the interface

These restart parts of macOS that sometimes get stuck. Each one restarts on its own a second later, and nothing is lost.

Restart the Dock

Fixes a Dock that won’t show apps, badges that won’t clear, and a stuck Launchpad, Mission Control or app switcher.

Terminal
killall Dock

Restart Finder

Fixes Finder windows that won’t update, files that don’t appear, and a Desktop that won’t redraw.

Terminal
killall Finder

Restart the menu bar and Control Center

Fixes menu bar icons that disappear or freeze, and a Control Center that won’t open.

Terminal
killall SystemUIServer ControlCenter

Restart Notification Center

Fixes notifications that stop appearing, widgets that won’t update, and a Notification Center that won’t open.

Terminal
killall NotificationCenter

Restart the input menu

Fixes the keyboard language menu or input switcher when it stops responding.

Terminal
killall TextInputMenuAgent

Fix how things open

Rebuild the “Open With” list

Fixes duplicate apps in the Open With menu, apps that have been deleted still showing up, and files opening in the wrong app. It rebuilds the Launch Services database, which can take a minute:

Terminal
/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user

You may need to choose your default apps again afterwards.

Reset Quick Look previews

Fixes previews (pressing Space in Finder) that show the wrong thumbnail, an old version of a file, or nothing at all:

Terminal
qlmanage -r cache

Fixes that need your password

These touch system-wide settings, so macOS asks for an administrator password. In Terminal, sudo asks for it; nothing appears while you type, which is normal.

Rebuild the Spotlight index

Fixes Spotlight searches that miss files you know exist, or show files you’ve deleted. Rebuilding takes from a few minutes to an hour, and Spotlight is slower until it’s done.

Terminal
sudo mdutil -E /

Flush the DNS cache

Fixes websites that won’t load after they moved, or that load an old version, while other sites work fine.

Terminal
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder

Thin Time Machine snapshots

Frees space held by local Time Machine snapshots. macOS removes these on its own when space runs low, so this only helps when you need the space right now. See what System Data is for more.

Terminal
tmutil listlocalsnapshots /

That lists them; sudo tmutil thinlocalsnapshots / 10000000000 4 asks macOS to free about 10 GB of them.

When memory is tight

Free up memory

macOS manages memory well on its own, and “free” memory isn’t better than memory in use: macOS keeps things in memory so they open faster. Clearing it rarely helps. It can help if you’ve just closed a very large app and want room for another straight away:

Terminal
sudo purge

If your Mac is often short of memory, the real fix is closing apps and browser tabs you don’t need. Open Activity Monitor, click Memory, and look at what’s using the most.

What a tune-up won’t do

  • Make a healthy Mac faster. If nothing is broken, these resets change nothing you’d notice.
  • Fix a full disk. For that, see why is my Mac’s disk full?.
  • Fix hardware problems or a slow, old Mac. A restart and enough free space are the two things that help most.

Should you just restart instead?

A full restart does all of the interface resets at once, plus more. If you can restart, do. These fixes are for when you can’t: you’re mid-export, on a call, or have twenty windows open you don’t want to lose.

Tune-up

Or let Tinymop run them

Tune-up runs these eleven fixes for you and reports exactly what happened: what ran, how long it took, and anything it skipped and why, like Finder being busy. Fixes that need your password ask first. No scores, no “optimised!”.

Download for Mac
3 fixes
done