Uncomplete list of macOSdefaultscommands with demos ✨

#🙋 What's adefaultscommand?

macOS applications and other programsuse thedefaultssystem to record user preferences and other information to be maintained when the application isn't running (font for new documents, or the position of an Info panel). Much of this information is accessible through an application's Preferences panel but sometimes they're hidden.

User defaults belong todomains, which typically correspond to individual applications. Applications, system services, and other programs have their own domains, they also share a domain namedNSGlobalDomain. If a default isn't specified in the application's domain, it may be specified in NSGlobalDomain.

Each domain has a dictionary of keys and values representing its defaults; e.g."Default Font" = "Helvetica".Keysare strings,valuescan be complex data structures comprising arrays, dictionaries, strings, and binary data. They're stored as XML Property List.

Thedefaultscommand line interface is a way to interact with these values.

Source:Real-World-Systems(opens new window)

#Command line interface basics

defaults help

#List all domains

defaults domains

#List all entries containingword

defaults search ${word}

#Show the type for the givendomain,key

defaults read-type ${domain} ${key}


defaults rename ${domain} ${old_key} ${new_key}

#💻 List of commands




#Mission Control

#Feedback Assistant



#Time Machine


#🤔 How do I add a command?

Please updatethis file(opens new window)that I use tobuild multiple websites(opens new window)like this one.

#❤️ I like this website, how can I build the same?

Thank you! I built it usingVuePress(opens new window). Take a look atmy report(opens new window)if you want to use it.

Deploys by Netlify