defaults [-currentHost | -host
Modifies the defaults system. When you customize your Mac using the
System Preferences, all of those changes and settings are stored in
the defaults system. Everything that
you’ve done to make your Mac your own is stored as
XML data in the form of a property list (or
plist). This property list is, in turn, stored
Every time you change one of those settings, that particular property
list is updated. For the initiated, there are two other ways to alter
the property lists. The first is by using the
Property List Editor
/Developer/Applications) and the
other is by using the
defaults command in the
Terminal. Whether you use System Preferences, Property List
Editor, or the
defaults command, any
changes you make affect the current user.
Performs operations on the local machine.
Performs operations on the specified host.
Prints out all of your current settings.
Prints out your settings for the specified domain, such as
Prints out the value of the specified key. For example, to see the current Dock orientation, use:
defaults read com.apple.dock orientation
Prints out the data type of the specified key. For example,
defaults read-type com.apple.dock orientation
tells you that the type of the
domain key value
Writes a value to the specified key. ...