Do you have a Mac which won’t shutdown or restart?   Perhaps you’re trying to update it?

If it hangs on a black screen with the mouse cursor top left of the screen then this fix might help.

First – close all other programs that might be open.

Then – you’ll need to launch a terminal window and then enter the following commands:

  1. rm -rf ~/Library/Caches/*
  2. rm -rf ~/Library/Saved\ Application\ State/*
  3. sudo rm -rf /Library/Caches/*
  4. sudo rm -rf /System/Library/Caches/*
  5. atsutil databases -removeUser
  6. sudo atsutil databases -remove
  7. sudo atsutil server -shutdown
  8. sudo atsutil server -ping
  9. sudo rm -rf /var/folders/*

Be careful to enter these commands accurately!

Once you’re done – restart the machine and you should be back to normal.

Another sign that this may help you is if spotlight isn’t working properly (for example – it doesn’t find “Disk Utility”).