How to reverse a terminal command

Hi,

So I was messing around with terminal and found a way to make my MacBook make a chime sound whenever it got plugged in using this code:

defaults write com.apple.PowerChime ChimeOnAllHardware -bool true; open/System/Library/CoreServices/PowerChime.app

I was wondering if there was any way to reverse it so it won't make the chime anymore, I've never really used terminal before so I'm completely new to this

Thanks for any possible help!

MacBook Air, macOS High Sierra (10.13.1)

Posted on Dec 14, 2017 11:59 AM

Reply
Question marked as Top-ranking reply

Posted on Dec 14, 2017 12:09 PM

Try the same command, but use "-bool false" instead.


Hint: In the future be very careful of using Terminal commands in any of the operating systems /System or /Library folders, until you become more familiar with what you are doing. Otherwise, you can end up corrupting the OS and will have to reload it to recover.

2 replies
Question marked as Top-ranking reply

Dec 14, 2017 12:09 PM in response to me_s

Try the same command, but use "-bool false" instead.


Hint: In the future be very careful of using Terminal commands in any of the operating systems /System or /Library folders, until you become more familiar with what you are doing. Otherwise, you can end up corrupting the OS and will have to reload it to recover.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How to reverse a terminal command

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.