MacOS – How to restore default terminal command for Notifications on Yosemite

macosnotifications

On Yosemite I disabled notifications with the following terminal command:

cd `getconf DARWIN_USER_DIR`
rm -rf com.apple.notificationcenter
killall usernoted; killall NotificationCenter

Does anyone know what I need to type to restore the original default notification setting?

Best Answer

What you've done here is delete the entire Notification Center database, not simply disable Notification Center. You will need to restore this container, preferably from a backup. Alternatively, you can reinstall OS X.