Skip to Content

Terminal Tips: Disable Spotlight in menu bar

Are you tired of accidentally opening spotlight by pressing command + space? With this simple Terminal "hack," you can rid your precious menu bar of Spotlight for once and all. Just open Terminal.app (located in /Applications/Utilities/) and type the following command:

sudo chmod 0 /System/Library/CoreServices/Spotlight.app

You will be required to authenticate as an administrator, then the command will run. While you are still in the Terminal, type "killall Spotlight" to turn off the spotlight service right then. Spotlight will suddenly dissappear from your menu bar. To get Spotlight back, just type the following command back into Terminal:

sudo chmod 775 /System/Library/CoreServices/Spotlight.app

After a few seconds, Spotlight will reappear in your menu bar. Note that this does not remove Spotlight from Finder windows, only from the menu bar.


Want more tips and tricks like this? Visit TUAW's Mac 101 and Terminal Tips sections.

Categories

Terminal Tips

Are you tired of accidentally opening spotlight by pressing command + space? With this simple Terminal "hack," you can rid your precious...
 

Add a Comment

*0 / 3000 Character Maximum

23 Comments

Filter by:
nev

Why could setting your HD to private be "dangerous around system update time"?

October 23 2008 at 12:57 AM Report abuse rate up rate down Reply
Girl Friday

I'm almost afraid to chime in. I hate spotlight in my menu bar. I'm always scrolling over it with my mouse and the window pops open when I don't want or expect it to. (I hate the way spotlight handles the "show all" part, too. It worked better for me in Tiger.) Now, if I need to do a search, I use the search in a Finder window.

And, in order to keep from accidentally messing up the command for the terminal, I just copied what he had up there into it.

Nobody yell at me.

September 27 2008 at 3:24 AM Report abuse rate up rate down Reply
darren

I'd put that down to coincidence. Very little that you change in the software would cause the hard drive to fail to the point where a replacement is needed.

September 24 2008 at 7:38 AM Report abuse rate up rate down Reply
Luigi193

This is probably the worst tip ever published.

Go to the spotlight preferences and change it their!
If you don't want the indexing, set your entire HDD to private, and it will IMMEDIATELY stop all indexing forever(on that drive of course)...

This could be dangerous around system update time...
PLUS it would most likely be reset, when permissions are repaired...

September 23 2008 at 6:48 PM Report abuse rate up rate down Reply
Pradador

Leave Spotlight alone!!!

September 23 2008 at 4:42 PM Report abuse rate up rate down Reply
Mike Schau

Ugh hate to have to keep scrollign past the ugh ugh Obama plug to read your fine site.
Not all Mac users are liberal Democraps.

September 23 2008 at 2:55 PM Report abuse rate up rate down Reply
Yakov Chodosh

What about just adding Macintosh HD to the list of Spotlight exceptions?

p.s. you are all insane, trying to disable one of the MAIN reasons to use Mac OS X

September 23 2008 at 2:27 PM Report abuse rate up rate down Reply
Mike

That is a lot of dangerous work for something that can be done with one mouse click in the peference pane for Spotlight. All the way at the bottom it says: "Spotlight menu keyboard shortcut." Just uncheck it and you are done.

September 23 2008 at 1:04 PM Report abuse rate up rate down Reply
Brendan Porter

If you want to kill spotlight completely, just go to terminal and type:

sudo defaults write /System/Library/LauchAgents/com.apple.spotlight KeepAlive false

You will have to enter your Administrative password.
Then you can kill the process with Activity Viewer. The above command prevents OS X from re-starting Spotlight when it detects it has quit.
To reverse, just type true instead of false.

September 23 2008 at 1:03 PM Report abuse rate up rate down Reply
leenyx

Why would anyone uninstall one of the best applications implemented in the mac OS. In Leopard Spotlight works wonderfully, I bet the same guy is installing Quicksilver because someone has told him that's the way to go, when Spotlight is so useful and easy to use...

Nevermind I am starting to think that too many PC guys are switching and starting to mess up with everything...

September 23 2008 at 12:38 PM Report abuse rate up rate down Reply
Buy an ad here

Hot Apps on TUAW

Tweets

© 2012 AOL Inc. All Rights Reserved.