Skip to content

macOS System, Updates and Hardware Cheat Sheet

Quick-reference guide for macOS updates, hardware information, disks and APFS, battery, and sleep on Apple Silicon.


Check Detailed macOS Build & Version:

sw_vers

List Available macOS Software Updates:

softwareupdate -l

Install All Available Updates & Reboot Automatically:

sudo softwareupdate -iaR

Download the Latest Full macOS Installer to /Applications:

softwareupdate --fetch-full-installer

Download a Specific Full macOS Installer Version:

softwareupdate --fetch-full-installer --full-installer-version [version]

Install Xcode Command Line Tools (CLT):

xcode-select --install

Query Hardware, Software & NVMe Storage Profiles:

system_profiler SPSoftwareDataType SPHardwareDataType SPNVMeDataType

Monitor Apple Silicon CPU/GPU/ANE Power & Thermal Pressure (Live CLI):

sudo powermetrics --samplers cpu_power,gpu_power,ane_power,thermal -i 1000 -n 1

List All Disks, Partitions, and APFS Containers:

diskutil list

List APFS Volumes & Storage Pool Usage:

diskutil apfs list

Verify APFS Volume Integrity:

diskutil verifyVolume /

List Local Time Machine APFS Snapshots:

tmutil listlocalsnapshots /

Delete a Specific Local APFS Snapshot:

sudo tmutil deletelocalsnapshots [snapshot_date]

Eject an External Drive Safely:

diskutil eject /dev/disk[n]

Check Battery Status & Current Charge:

pmset -g batt

Check Battery Cycle Count & Maximum Capacity:

system_profiler SPPowerDataType | grep -E "Cycle Count|Condition|Maximum Capacity"

Check Active Power Assertions (Find What Is Preventing Sleep):

pmset -g assertions

Prevent System & Display Sleep Indefinitely (Press Ctrl+C to Stop):

caffeinate -di

Prevent Sleep Until a Specific Command Finishes:

caffeinate -i [command]

Prevent Sleep Until a Specific Process (PID) Completes:

caffeinate -w [PID]

Sources & Verification

  • macOS release notes: Apple Developer
  • Built-in manual pages: run man <command> (for example man softwareupdate)