Spotlight – Enable/Disable

I’m a big fan of spotlight on a Mac, but there are those out there who aren’t, if you happen to be one of them then this next bit is for you, you can disable spotlight by doing the following

Open Terminal and type the following

sudo nano /etc/hostconfig

locate the following item

SPOTLIGHT=-YES-

Change it so it now reads

SPOTLIGHT=-NO-

Press CTRL-X, then press Y, then press ENTER to save the file

Now to disable indexing type the following into Terminal

sudo mdutil -i off /

to erase the current index type the following into Terminal

sudo mdutil -E /

And thats that, Spotlight is now disabled, but if you realise that you have made a terrible mistake then don’t despair, you can enable spotlight again by basically reversing the work you’ve just done

so, in Terminal type

sudo nano /etc/hostconfig

locate the following item

SPOTLIGHT=-NO-

Change it so it now reads

SPOTLIGHT=-YES-

Now to enable indexing type the following into Terminal

sudo mdutil -i on /

and there you have it, a fully working spotlight