Name
defaults
Synopsis
defaults [host]subcommand domain[option] [key]
defaults [-currentHost | -hosthostname] read [domain[key]] defaults [-currentHost | -hosthostname] read-typedomain keydefaults [-currentHost | -hosthostname] writedomain{ 'plist' |domain key'value' } defaults [-currentHost | -hosthostname] renamedomain old_key new_keydefaults [-currentHost | -hosthostname] delete [domain[key]] defaults [-currentHost | -hosthostname] {domains| findword|help}
Used to access Mac OS X’s user defaults database to read, write (set or change), and delete system and application preferences.
The defaults command allows users and
administrators to read, write, and delete Mac OS X user defaults from
a command-line shell. An application’s defaults
belong to a domain, which typically
correspond to individual applications; however, they can apply to
system settings made via the System Preferences panels. Each domain
has a dictionary of keys and values representing its defaults. Keys
are always strings, but values can be complex data structures
comprising arrays, dictionaries, strings, and binary data. These data
structures are stored as XML property lists.
Though all applications, system services, and other programs have
their own domains, they also share a domain named
NSGlobalDomain. If a default
isn’t specified in the
application’s domain but is specified in
NSGlobalDomain, the application uses the value in
that domain.
Host
- -currentHost
Restricts the actions of ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access