I removed the Spotlight icon from the menu bar. I would like to restore it.
I tried the recommended method:
sudo mdutil -a -i on
sudo chmod 755 /System/Library/CoreServices/Search.bundle/Contents/MacOS/Search
sudo killall SystemUIServer
…which did not help. The command keys still work, but I would like to see the icon. I read the suggestion to reinstall the system and would prefer not to do that.
Does anyone have a different suggestion?
Problem solved: The article from OSXDaily worked perfectly. Thanks to all who responded.
Best Answer
Just to make an official answer.
User M K referenced an article in osXDaily that explains how to both hide and un-hide the Spotlight icon.
I just tested this on OS X Yosemite 10.10.5 with success.