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.appYou 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.appAfter 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.
Share
Categories
Are you tired of accidentally opening spotlight by pressing command + space? With this simple Terminal "hack," you can rid your precious...
Add a Comment
Why could setting your HD to private be "dangerous around system update time"?
October 23 2008 at 12:57 AM Report abuse Permalink rate up rate down ReplyI'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.
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 Permalink rate up rate down ReplyThis 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...
Leave Spotlight alone!!!
September 23 2008 at 4:42 PM Report abuse Permalink rate up rate down ReplyUgh hate to have to keep scrollign past the ugh ugh Obama plug to read your fine site.
Not all Mac users are liberal Democraps.
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
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 Permalink rate up rate down ReplyIf 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.
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...
Hot Apps on TUAW
Deals of the Day
more deals- Used Apple iMac 17" Core 2 Duo 1.83GHz for $430 + $28 s&h
- Lounge Deluxe Stand for iPhone / iPod touch for $28 + $8 s&h
- Brookstone Surround-Sound Earbuds for $14 + $7 s&h
- Refurbished Skullcandy Tokidoki Smokin' Buds Mic'd Headset for $5 + $2 s&h
- Stitchway Backup Battery for iPod / iPhone for $5 + free shipping
- Used Apple MacBook Pro 2.4GHz 15" LED Laptop for $1,030 + $29 s&h
Software Updates
more updates- EFI Firmware Update brings Lion Internet Recovery to 2010-model Macs
- OS X Lion 10.7.3 released with Safari 5.1.3, Wi-Fi bug fix
- Aperture updated to 3.2.2, addresses Photo Stream issue
- Apple updates Keynote to address Lion issues
- Google Search app gets new look on iPad
- Apple releases Apple TV Software Update 4.4.3



23 Comments