For some reason, since upgrading to macOS Big Sur, my Do Not Disturb status seems to get stuck. However many times I turn it off it always mysteriously ends up being on again. Which I of course first realise after missing notification for a few hours, having been unwantingly extra productive. Can’t have that!

Thanks to this Reddit comment the setting is set in one or more plists.

Use this one liner to set it to false:

for f in `ls ~/Library/Preferences/ByHost/com.apple.notificationcenterui.*.plist`; do defaults write $f doNotDisturb 0; done && killall NotificationCenter

Aaah, the overwhelming feeling of drowning in notifications is back.