Remove OSX spotlight keyboard shortcut from command line

how is it possible to disable the keyboard shortcut Cmd+Space without using the System Preferences?

I've already found this but it hasn't been really helpful because I neither know the key nor how to set it to disabled.

Can somebody assist me?


Solution 1:

The Spotlight keyboard shortcut is stored in com.apple.symbolichotkeys.

To disable it, run the following:

/usr/libexec/PlistBuddy ~/Library/Preferences/com.apple.symbolichotkeys.plist -c \
  "Set AppleSymbolicHotKeys:64:enabled false"

This takes effect after log out.

To re-enable, replace false with true.