What happens when you enter an incorrect "defaults write" command?

Discussion in 'macOS' started by bitfidelity, Jul 28, 2012.

  1. bitfidelity macrumors member

    Jul 2, 2012
    When you enter a "defaults write" command in Terminal and accidentally put in a wrong character or leave one out, is anything still written to your system?
  2. Matthew Yohe macrumors 68020

    Oct 12, 2006
    Yup it gets written.

    Verify this by typing:

    defaults read | grep -i <SOME TEXT HERE FROM THE MISTYPED LINE>

    (without the <>'s by the way)

    You can also just delete the key you created as well. Type in just the word defaults in terminal, and this will show you the syntax to delete the key.
  3. bitfidelity thread starter macrumors member

    Jul 2, 2012
    Awesome, that identified the extra line. Thanks!

Share This Page