<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/a-list-of-macos-defaults-commands-with-demos-i43ljnjxs" -->

---
title: A list of macOS defaults commands with demos | daily.dev
description: A curated, community-maintained reference site collects macOS `defaults write` terminal commands used to tweak hidden system preferences across Dock, Finder,...
canonical: https://daily.dev/posts/a-list-of-macos-defaults-commands-with-demos-i43ljnjxs
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: A list of macOS defaults commands with demos | daily.dev
og:description: A curated, community-maintained reference site collects macOS `defaults write` terminal commands used to tweak hidden system preferences across Dock, Finder,...
og:url: https://daily.dev/posts/a-list-of-macos-defaults-commands-with-demos-i43ljnjxs
og:image: https://api.daily.dev/og/posts/i43ljNJxS.png
og:image:alt: A list of macOS defaults commands with demos
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# A list of macOS defaults commands with demos

**[Lobsters](https://daily.dev/sources/lobsters)** · 3 min read · 0 upvotes · 0 comments

## Summary

A curated, community-maintained reference site collects macOS `defaults write` terminal commands used to tweak hidden system preferences across Dock, Finder, Trackpad, Keyboard, Mission Control, and other apps, each with a demo showing the visual effect. It explains what the `defaults` system and domains are, lists basic CLI commands like `defaults help`, `defaults domains`, and `defaults find`, and accepts community contributions via GitHub pull requests.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://macos-defaults.com/>

## Questions this post answers

### How do I list all macOS defaults domains from the terminal?

Run `defaults domains` to print every domain currently storing preference data on a Mac. Domains typically correspond to individual applications, plus a shared domain called NSGlobalDomain used when an app-specific default isn't set. Combine this with `defaults find ${word}` to search all entries containing a given word.

_Developers scripting macOS setup automation often keep reference commands like this handy via daily.dev._

### How can I disable the macOS Gatekeeper quarantine warning for downloaded apps?

Use the LSQuarantine default, listed under Miscellaneous commands, to disable the application quarantine message that normally appears when opening a downloaded app. This is one of several `defaults write` commands documented alongside Dock, Finder, Trackpad, and Keyboard tweaks that modify hidden macOS preferences not exposed in System Settings.

_Developers customizing dev machine setups track handy defaults tweaks like this through daily.dev._

## Community take

How the wider developer community reacted, aggregated from 4 discussions and 11 comments across lobsters, hackernews (as of 2026-09-12).

**TL;DR:** People appreciate having a curated, searchable reference for macOS defaults commands, sharing their own favorite tweaks and complementary tools, with only mild grumbling that the list overlaps with existing dotfiles collections.

**Sentiment:** 70% positive · 25% mixed · 5% skeptical

**The case for**

- It serves as a handy inventory with descriptions and screenshots, even for those who now manage settings declaratively via nix-darwin.
- Prompted people to share useful additions like locking dock size, changing screenshot location, and disabling trackpad swipe navigation in Chrome.
- A GUI alternative (TinkerTool) with backup/rollback was mentioned as a nice complement for this kind of tweaking.

**The pushback**

- One commenter felt the list mostly repeats the same commonly-shared defaults seen elsewhere rather than surfacing new ones.

**By community**

- lobsters (positive): Commenters enthusiastically added their own favorite defaults commands and related tools, showing genuine appreciation for the resource.
- hackernews (mixed): Reception is generally positive but includes a note that the list covers mostly the same well-known commands as other dotfiles collections.

**Open questions**

- What is the correct defaults command to set Finder's font size to 16?

**Highlights**

> Missing one of my favorites. After setting the dock size, I like to also set size-immutable to prevent myself from accidentally resizing it: ``` defaults write com.apple.dock tilesize -int 32  defaults write com.apple.dock size-immutable -bool yes killall Dock ```
> — [trousers on lobsters · 7 points, 1 comments](https://lobste.rs/s/n54ybt/list_macos_defaults_commands_with_demos#c_9s3tm2)

> I had only used defaults as some cryptic old magic to solve a one off issue at a time. I was excited to see this. My new computer init: ``` mkdir ~/screenshots defaults write com.apple.screencapture location ~/screenshots killall SystemUIServer # disable two finger swipe left/right in browser defaults write com.google.Chrome AppleEnableSwipeNavigateWithScrolls -bool FALSE ```
> — [mw on lobsters · 1 points](https://lobste.rs/s/n54ybt/list_macos_defaults_commands_with_demos#c_nmltsl)

> I can recommend TinkerTool for this kind of thing as well: https://www.bresink.com/osx/TinkerTool.html IIUC it's basically a GUI for `defaults`, but it has some nice affordances (like a backup/rollback system).
> — [madsmtm on lobsters · 1 points](https://lobste.rs/s/n54ybt/list_macos_defaults_commands_with_demos#c_kfdbfi)

> A bit sad it's always the same defaults than everywhere else. When I setup a new system, I always end up here: https://github.com/mathiasbynens/dotfiles/blob/master/.macos Then I add the few missing ones as I use the machine, like this one for example: https://macos-defaults.com/finder/showwindowtitlebaricons.ht...
> — [melomac on hackernews · 1 comments](https://news.ycombinator.com/item?id=41810884)

> After recently switching to nix-darwin, I can now declare them in a config instead of running them. Still nice to have an inventory with descriptions and screenshots.
> — [frontsideair on lobsters · 1 points](https://lobste.rs/s/n54ybt/list_macos_defaults_commands_with_demos#c_8crbpb)

**Source threads**

- [lobsters](https://lobste.rs/s/n54ybt/list_macos_defaults_commands_with_demos) · 22 points · 5 comments
- [hackernews](https://news.ycombinator.com/item?id=41810292) · 33 points · 4 comments
- [hackernews](https://news.ycombinator.com/item?id=33633116) · 4 points · 2 comments
- [hackernews](https://news.ycombinator.com/item?id=38843272) · 4 points · 0 comments

## Similar posts on daily.dev

- [Hide macOS Tahoe's Menu Icons With This One Simple Trick](https://daily.dev/posts/hide-macos-tahoe-s-menu-icons-with-this-one-simple-trick-5qxuvqxi9) · Hacker News · 0 upvotes · 0 comments
- [10 Coding Shortcuts That Save Me Hours Every Week](https://daily.dev/posts/10-coding-shortcuts-that-save-me-hours-every-week-b7wvtyszi) · Medium · 1 upvotes · 0 comments
- [Ars Asks: Share your shell and show us your tricked-out terminals\!](https://daily.dev/posts/ars-asks-share-your-shell-and-show-us-your-tricked-out-terminals--4dnzkuy3f) · Ars Technica · 0 upvotes · 0 comments
- [A terminal setup for the modern developer \(2026 edition\)](https://daily.dev/posts/a-terminal-setup-for-the-modern-developer-2026-edition--2qlwadrc7) · FREEK.DEV · 6 upvotes · 2 comments

---

Tags: [#cli](https://daily.dev/tags/cli), [#mac](https://daily.dev/tags/mac)

[View this post on daily.dev](https://daily.dev/posts/a-list-of-macos-defaults-commands-with-demos-i43ljnjxs)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"A list of macOS defaults commands with demos","url":"https://daily.dev/posts/a-list-of-macos-defaults-commands-with-demos-i43ljnjxs","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/a-list-of-macos-defaults-commands-with-demos-i43ljnjxs"},"datePublished":"2026-09-12T17:48:40.005Z","dateModified":"2026-09-12T19:49:15.212Z","description":"A curated, community-maintained reference site collects macOS `defaults write` terminal commands used to tweak hidden system preferences across Dock, Finder,...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/3a9139ed2e4620490e02f8e93542c90b?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/3a9139ed2e4620490e02f8e93542c90b?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Lobsters","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Lobsters","logo":"https://media.daily.dev/image/upload/s--tl8v_Fku--/f_auto,t_logo/v1698841318/logos/lobste.jpg","url":"https://daily.dev/sources/lobsters"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/a-list-of-macos-defaults-commands-with-demos-i43ljnjxs","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"cli,mac","timeRequired":"PT3M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Lobsters","item":"https://daily.dev/sources/lobsters"},{"@type":"ListItem","position":3,"name":"A list of macOS defaults commands with demos"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/a-list-of-macos-defaults-commands-with-demos-i43ljnjxs#faq","mainEntity":[{"@type":"Question","name":"How do I list all macOS defaults domains from the terminal?","acceptedAnswer":{"@type":"Answer","text":"Run `defaults domains` to print every domain currently storing preference data on a Mac. Domains typically correspond to individual applications, plus a shared domain called NSGlobalDomain used when an app-specific default isn't set. Combine this with `defaults find ${word}` to search all entries containing a given word. Developers scripting macOS setup automation often keep reference commands like this handy via daily.dev."}},{"@type":"Question","name":"How can I disable the macOS Gatekeeper quarantine warning for downloaded apps?","acceptedAnswer":{"@type":"Answer","text":"Use the LSQuarantine default, listed under Miscellaneous commands, to disable the application quarantine message that normally appears when opening a downloaded app. This is one of several `defaults write` commands documented alongside Dock, Finder, Trackpad, and Keyboard tweaks that modify hidden macOS preferences not exposed in System Settings. Developers customizing dev machine setups track handy defaults tweaks like this through daily.dev."}}]}
```

