defaults

usage

commands

commands
comments

read

prints the user’s settings to standard output

read-type

prints the plist type for a given key

write

write a value for the given key

rename

rename a key

import

import a plist to a given domain

export

export a domain and all the keys as a plist

delete

delete a given key or a domain / all keys for a given domain

domains

prints the name of all domains

find

search all domains, keys, and values for a given word

usage

basic usage

list all domains

  • i.e.

defaults

programming

xCode

add additional Counterpart Suffixes

show build durations

add additional counterpart suffixes

show build durations

iTerm2

profile

prompt when quitting

terminal

enable security keyboard

[!NOTE|label:references:]

line marks

modify theme

developer mode

[!NOTE|label:references:]

developer mode

utilities

startup sounds

forbidden spell automatic correction

disable notification centers

are you sure you want to open this application?

allow application from
allow application from

screenshot

suppress "Allow For One Month"

[!NOTE|label:references:]

set screenshot location

shadow

include date

save location

thumbnail

screenshot format

finder

hidden file

show hidden files

[!TIP|label:shortcuts:]

  • ⇧ + ⌘ + . ( shift + command + . )

disable the .DS_Store and ._*

[!NOTE|label:references:]

  • Junk files created by macOS (or Finder)...

    • You can disable MDS on a specific volume, but you need to create a hidden file to do it

  • more details

    • .DS_Store – The name of a file in the Apple OS X operating system for storing custom attributes of a folder such as the position of icons or the choice of a background image (Read more)

    • .Spotlight-V100 – This file holds information to speed up the 'Spotlight Search' feature. Deleting would simply force this information to be re-indexed if you performed another Spotlight Search for an item in this folder.

    • .apDisk – This file holds information about shared folders and can be safely removed as it will be automatically re-created if Apple needs it.

    • .VolumeIcon.icns – This file is used to store the icon of the volume (USB device) if the volume uses a custom icon and not the default icon. If you want the device to continue using this default icon, or if the folder/device you want to clean contains an application, you might want to keep this file in your system. As a side note, if you wanted to create a custom icon for your device you could create/download an .icns file and rename it .VolumeIcon.icns and place in your folder/device.

    • .fseventsd – This file is used as a buffer for the File System Events daemon. If you are using a program that is monitoring this folder/device, this file might be used to store temporary data.

    • .Trash & .Trashes – These folders are used to hold deleted items the same way that the 'Trash' icon from the dock works. If you don't need this feature on your folder/device, you can clean this folder to save space.

    • .TemporaryItems – This file is used by the OS to hold temporary data when files are being copied/moved/appended. If you are running any programs that are accessing the folder/device you want to clean, and you aren't copying or moving any files, then this file can simply hold old data for caching.

  • result

default location

timestamp on zip filenames

empty trashcan after 30 days

finder sound

trash sounds

extension

view

full POSIX path in toolbar title

column view

[!TIP]

keep folder on top

animation when opening the Info window in Finder

icon

set sidebar icon size

show item info near icons

show item info to right of icons

snap-to-grid for icons

increase grid spacing for icons

increase the size of icons

bars

show path bar

show status bar

show icon in the title bar

adjust toolbar title rollover delay

panel

others

search scope

[!TIP]

  • default search scope

    • SCcf : Search the current folder

    • SCsp : Use the previous search scope

    • SCev : Search this Mac

disk image verification

silent quiet

save to disk or iCloud

select && copy from quicklook

spring loading

volume mounted

desktop

show wallpaper location

keep folders on top

quick hidden desktop icons

icons

  • show external disk

  • show hard drive

  • show connected servers

  • show removeable media ( CDs, DVDs and iPods )

transparency

highlight color

flash clock time separators

set menu bar digital clock format

[!NOTE|label:region settings:]

  • ss for seconds.

  • HH for 24-hour clock.

  • EEE for 3-letter day of the week.

  • d MMM for day of the month and 3-letter month.

menu bar transparency

dock

[!NOTE|label:references:]

show

add a blank space

add recent items folder

group window by app

position

[!TIP]

disable delay of dock displaying

show recently

recent use rearrange space

icon

highlight icon

icon size

remove none-opened apps ( show only active Apps )

whether show hidden icon

animation

opening applications animation

animations when opening and closing windows

animations when opening a Quick Look window

animation of minimize windows

autohide

autohide animation delay

[!NOTE|label:precondition]

  • setup autohide to true

autohide delay

[!NOTE|label:precondition]

  • setup autohide to true

others

2D Dock

enable iTunes track notifications in the dock

highlight hover effect

speeding up mission control animations

spring loading for all Dock items

indicator lights for open apps

mission control

rearrange automatically

switch to space with open windows

displays have separate spaces

keyboard

[!NOTE|label:references:]

key repeat

  • restore

  • key repeat for in specific apps

  • read form NSGlobalDomain

fast keyboard response

reduce key repeat delay

enable full keyboard access

[!TIP] Enable full keyboard access for all controls (e.g. enable Tab in modal dialogs)

auto-correct

auto-capitalization

auto capitalization

keyboard illumination

increasing sound quality for bluetooth

trackpad

[!TIP]

click weight

enable dragging with drag lock

Enable dragging without drag lock

enable dragging with three finger drag

enable tap to click

[!NOTE|label:references:]

  • or

enable three finger to drag

trackpad & mouse speed

battery percent

remaining battery time

browser

chrome

sensitive backswipe

system-native print preview

expand the print dialog

safari

show full url

dns prefetching

bookmarks

sidebar

thumbnail cache

debug mode

debug mode

standard deply

develop menu and the web inspector

search banners

backspace key to previous page

safari font size

system

hot corners

[!TIP|label:references:]

hot corners

modifiers

[!TIP|label:references:]

reduce the menu bar item spacing

[!TIP|label:see also]

Launchpad

enlarge icon

reset launchpad

dashboard

disable dashboard

keyboard remapping

[!NOTE|label:references:]

keyboard remapping for macos

keyboard

reset dns cache

[!NOTE|label:references:]

MACOS VERSION
COMMAND

macOS 12 (Monterey)

sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder

macOS 11 (Big Sur)

sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder

macOS 10.15 (Catalina)

sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder

macOS 10.14 (Mojave)

sudo killall -HUP mDNSResponder

macOS 10.13 (High Sierra)

sudo killall -HUP mDNSResponder

macOS 10.12 (Sierra)

sudo killall -HUP mDNSResponder

OS X 10.11 (El Capitan)

sudo killall -HUP mDNSResponder

OS X 10.10 (Yosemite)

sudo discoveryutil udnsflushcaches

OS X 10.9 (Mavericks)

sudo killall -HUP mDNSResponder

OS X 10.8 (Mountain Lion)

sudo killall -HUP mDNSResponder

Mac OS X 10.7 (Lion)

sudo killall -HUP mDNSResponder

Mac OS X 10.6 (Snow Leopard)

sudo dscacheutil -flushcache

Mac OS X 10.5 (Leopard)

sudo lookupd -flushcache

Mac OS X 10.4 (Tiger)

lookupd -flushcache

cursor

  • blink rate

active dark mode

  • read from NSGlobalDomain

automatic terminate inactive apps

viewer windows mode

textEdit

disk utility

QuickTime

[!NOTE|label:references:]

auto-play

rounded corners

controller bar

auto show subtitles

App Store

activity monitor

over-the-top focus ring animation

spotlight

change indexing order

crash reporter

notification center

time machine

scrollbars

rubber-band scrolling

airdrop

ASCII control characters using caret notation in standard text views

[!NOTE|label:references:]

system-wide resume ( disable tab memory )

loginwindow

sleep mode

[!TIP]

check status

no idle

never go to slepp mode

display sleep

set standby

power button in stand-by mode

remove sleep image file

un-useful sudden motion sensor for SSDs

smart quotes and smart dashes

requiring password immediately

[!NOTE|label:references:]

subpixel font rendering

HiDPI display modes

prevent automatic sleep when display is off

prevent automatic sleep when display is off

screensaver

[!NOTE|label:references:]

others

feedback assistant

  • auto gather

sidecar on incompatible macs

open photos automatically

show one application at a time

gatekeeper

gatekeeper

music song notifications

confirm changes popup

function keys behavior

disable Recent Items

[!NOTE|label:references:]

disable recent itmes

backup & restore

  • backup

  • restore

vscode

extension

  • backup

  • restore

settings

  • $HOME/Library/Application Support/Code/User/settings.json

Last updated

Was this helpful?