Skip to content

Latest commit

 

History

History
86 lines (58 loc) · 228 KB

macOS.md

File metadata and controls

86 lines (58 loc) · 228 KB

Software management

List installed (native) packages:

pkgutil --pkgs

Remove application saved state:

Saved states are in the directory: ~/Library/Saved Application State

System configuration

User defaults system

# read
defaults read <domain>
# write (postpones major software update notification to specified date)
defaults write com.apple.SoftwareUpdate MajorOSUserNotificationDate -date "2025-02-07 23:22:47 +0000"

DNS

nameservers per-domain configuration is in /etc/resolver, e.g. for the .dev domain, configure the nameserver like this:

# /etc/resolver/dev
nameserver 127.0.0.1
#nameserver 8.8.8.8 # additional stuff example

Own DNS server:

brew install dnsmasq
# restart:
sudo brew services restart dnsmasq

OSA script

good article

start js shell:

osascript -l JavaScript -i

Virtualization

Name Pricing Virtualization Vagrant support Remark
VirtualBox Free Native YES slow in graphics mode
UTM Free QEMU/Native WIP/WIP virtio? awesome in graphics mode with native virtualization
Tart Free Native (ARM macs only) maybe?
VirtualBuddy Free Native (ARM macs only) unknown, virtio?

System parameters

display

system_profiler SPDisplaysDataType

For DPI/PPI, google macbook (year, display size, etc.) "tech details", search for "pixels per inch" (PPI) on a page

CLI

Tips & tricks

Change screenshot location (Cmd+Shift+3, Cmd+Shift+4)

defaults write com.apple.screencapture location ~/Screenshots
# relaunch service:
killall SystemUIServer

source

Turn off auto-start iTunes when device connected