tips
99 tips macOS
One command, setting or habit at a time about macOS: what it does, the line to copy and a caveat or two.
Keyboard and desktop 17
-
Reach notifications, Control Center and dictation with the Fn or Globe key.
Fn-N show or hide Notification Center -
Move to the start or end of a line and cut the rest of it from the keyboard.
Control-A move to the beginning of the line or paragraph -
Delete text a word at a time, or to the right of the cursor.
Option-Delete delete the word to the left -
Toggle automatic Dock hiding from the keyboard to win back screen space.
Option-Command-D show or hide the Dock -
Clear the screen of every other app in one keystroke while they keep running.
Command-H hide the front app -
Type emoji, arrows, degree signs and other symbols in any text field on a Mac.
Control-Command-Space Character Viewer -
Look up a word's meaning in place without opening the Dictionary app.
Control-Command-D show or hide the definition -
Changes the Mac volume in smaller steps than a normal key press.
-
Opens the Force Quit window from the keyboard, to stop an app that hangs.
-
Makes an app always open on the same desktop, or on every desktop.
Control-click app in Dock > Options > Assign To: -
Stops your Mac windows from sliding away when you click the wallpaper by accident.
Show Desktop: Only in Stage Manager on Click -
Keeps your Mac desktops in the order you made them, so swipes stay predictable.
System Settings > Desktop & Dock > Mission Control -
Spreads out only the windows of the app you're using, so you can pick one.
Control-Down Arrow show all windows of the front app -
Adds a keyboard shortcut to any menu command in a Mac app, by its exact name.
System Settings > Keyboard > Keyboard Shortcuts > App Shortcuts > Add -
Jumps between the open windows of the app you're using, without the mouse.
Command-` next window of the front app -
Lets you open and choose menu bar items on your Mac using only the keyboard.
Control-F2 (or Fn-Control-F2) focus the menu bar -
Groups the files on your Mac desktop into tidy stacks by type, date or tag.
Control-Command-0 turn stacks on or off
Mac terminal 17
-
See every installed system extension, such as VPN or security agents, and its state.
systemextensionsctl list -
Print the chip name, memory size and core count with one short command.
sysctl -n machdep.cpu.brand_string hw.memsize hw.ncpu -
Read a single key such as an app's version from a property list file.
/usr/libexec/PlistBuddy -c "Print :CFBundleShortVersionString" /Applications/Safari.app/Contents/Info.plist -
Check in one line that System Integrity Protection still guards your Mac.
csrutil status -
Get an app's bundle identifier for defaults, profiles or scripts in one line.
osascript -e 'id of app "Safari"' -
Read your account's home folder, shell and user ID straight from the directory.
dscl . -read /Users/$USER NFSHomeDirectory UserShell UniqueID -
Look back through recent system log entries for one process instead of streaming.
/usr/bin/log show --last 1h --style compact --predicate 'process == "softwareupdated"' -
Downloads a chosen macOS installer version from Terminal instead of the App Store.
softwareupdate --list-full-installers -
Makes a USB drive that can boot a Mac and install macOS from it.
sudo /Applications/Install\ macOS\ 27\ Golden\ Gate.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume -
Stores a password in the macOS keychain and reads it back in a script, without a plain text file.
security add-generic-password -a "$USER" -s myapi -w -
Calculates the SHA-256 of a file on a Mac, or checks it against a list of checksums.
shasum -a 256 ~/Downloads/debian-13.iso -
Shows the model, chip, memory and serial number of a Mac from the terminal.
system_profiler SPHardwareDataType -
Lists what a .pkg installer added to your Mac, so you can see where its files went.
pkgutil --pkgs -
Lists installed formulae that no other installed formula or cask depends on.
brew leaves -
Prints the macOS product name, version and build number, or just one of them for scripts.
sw_vers -
Lists the macOS updates that are waiting for you, straight from the terminal.
softwareupdate --list -
Lists the updates Apple has ready for your Mac, from the terminal.
softwareupdate --list
Settings and services 15
-
Hold Command over small text on your Mac and a larger version pops up in a window.
System Settings > Accessibility > Hover Text > When using the pointer -
Keep scroll bars visible and choose what a click in the scroll bar does.
Always -
Make a title bar double-click fill the screen, zoom, minimize or do nothing.
Fill expand the window to fill the space between menu bar and Dock -
Start apps with a clean slate instead of every window from last time.
Close windows when quitting an application: on -
Make your Mac ignore probing requests like ping from devices it does not trust.
Enable stealth mode: on -
Make sure your Mac asks for a password the moment the screen saver or sleep starts.
System Settings > Lock Screen -
Stops a Focus on your iPhone from silencing your Mac as well, and the other way round.
System Settings > Focus > Share across devices -
Reorders or removes the status icons in your Mac menu bar without extra apps.
Hold Command, drag an icon off the bar remove -
Hides notification banners while your Mac screen is mirrored or shared.
> Allow notifications when mirroring or sharing the display: off -
Moves older files and photos to iCloud so your Mac only keeps the recent ones.
System Settings > General > Storage > Store in iCloud -
Switches between mirrored and extended screens with one key combination.
Command-Brightness Down turn video mirroring on or off -
Makes a screen corner trigger its action only while you hold a key like Command.
System Settings > Desktop & Dock > Hot Corners -
Snaps the active Mac window to half the screen or fills it, straight from the keyboard.
Fn-Control-Left Arrow left half -
Shows the third-party launch agents loaded for your user with their status.
launchctl list | grep -v com.apple -
Changes the folder where macOS saves screenshots with one preference command.
defaults write com.apple.screencapture location ~/Screenshots
Built-in apps 13
-
Smart Folders in the Notes app fill themselves with notes that match rules you set.
-
Hashtags in Notes become tags that you can click in the sidebar to filter notes.
-
Preview crops an image to a frame you drag, with no extra app needed.
-
Import photos and videos from a phone or camera straight into a folder of your choice.
Import To: pick a folder (or Other... for any location) -
Remove the background of a product shot or portrait in Preview with one click.
Click Remove Background -
Shrink many photos to one size in Preview without installing an image editor.
Tools > Adjust Size set the new size once -
Start a note on top of any app with one shortcut, and keep links to Safari pages.
Fn-Q (or Globe-Q) -
Combine pages from several PDFs into one file with Preview, no extra software.
drag pages from one sidebar to the other sidebar -
Make a large PDF smaller with Preview's export filter before you email or upload it.
Quartz Filter: Reduce File Size -
Put your own handwritten signature on a PDF form without printing or scanning it.
iPhone or iPad: pick the device, sign with your finger, tap Done -
Cut the start and end off a video in QuickTime Player with the yellow trim handles.
Command-T (Edit > Trim) -
Turn a rich text document in TextEdit into a plain .txt file without fonts or styles.
Format > Make Plain Text (saves as .txt) -
Turn the Activity Monitor Dock icon into a live graph of CPU or network use.
View > Dock Icon > (pick one of the Show CPU options)
Network and DNS 12
-
Match device names like en0 or en5 to Wi-Fi, Ethernet and Thunderbolt ports.
networksetup -listallhardwareports -
See address, subnet, router and DHCP or manual setup for one network service.
networksetup -getinfo Wi-Fi -
Get the local IP address of one interface as a single line, ready for scripts.
ipconfig getifaddr en0 -
See the active system proxy configuration when some apps cannot reach the internet.
scutil --proxy -
Find out which router and which network interface carry your Mac's traffic.
route -n get default -
Prints all DNS resolvers macOS uses, with their domains, interfaces and order.
scutil --dns -
Clears the cached DNS answers on a Mac with one command.
sudo killall -HUP mDNSResponder -
Decides which connection your Mac tries first when Ethernet and Wi-Fi are both active.
networksetup -listnetworkserviceorder -
Decides per network whether your Mac shows a fixed, rotating or real Wi-Fi address.
System Settings > Wi-Fi > Details > Private Wi-Fi address -
Asks the DHCP server for a fresh address and settings without switching Wi-Fi off and on.
System Settings > Network > Wi-Fi > Details > TCP/IP > Renew DHCP Lease -
Keeps a saved Wi-Fi network on your Mac but stops it from connecting by itself.
System Settings > Wi-Fi > Known Networks > (…) > Auto-Join -
Analyzes a flaky Wi-Fi connection on your Mac and saves a report for support.
Option-click the Wi-Fi icon > Open Wireless Diagnostics
Automation 4
-
Schedule your own script with launchd so a missed run happens when the Mac wakes.
-
Turns a script into a double-clickable app that can stay open and repeat its work.
Script Editor > File > Export > File Format: Application -
Shows your own scripts in a menu bar menu, so they run with one click.
Script Editor > Settings > General > Show Script menu in menu bar -
Shows which commands and objects an app supports before you write a script for it.
Script Editor > Window > Library > double-click the app
Continuity 4
-
Tap, type and get iPhone notifications on your Mac while the phone stays locked.
Mac with macOS 15 or later, iPhone with iOS 18 or later -
Opens the page or email from your iPhone on your Mac with one keyboard shortcut.
Command-Tab then pick the Handoff icon -
Keeps AirDrop closed to strangers, who can still send you something with a one-time code.
Control Center > click and hold AirDrop (or click the arrow next to it) -
Turns your iPhone into a Mac webcam and shows your desk from above during calls.
Mac (FaceTime): Video menu > choose your iPhone
Disks and names 4
-
Check a volume's file system for errors from Terminal before you decide on a repair.
diskutil verifyVolume /Volumes/Backup -
Shows the file system, identifier and space of any disk or volume on your Mac.
diskutil info / -
Prints the computer name, Bonjour name and hostname that macOS keeps separately.
scutil --get ComputerName -
Lists only external physical drives so you pick the right disk before erasing.
diskutil list external physical
Finder shortcuts 4
-
Keep your current Finder view and open a folder in a separate tab or window.
Command + double-click open the folder in a separate tab or window -
Moves the selected files into a brand new folder in one step.
Select the files > Control-Command-N -
Makes every file of one type open in the app you choose.
Open with: pick your editor > Change All -
Opens a folder and all its nested folders at once in Finder's list view.
Option-click the triangle open all nested folders
Files and Spotlight 3
-
Open a fresh copy of a document every time, so the original stays untouched.
General: [x] Stationery pad -
Saves a Finder search as a folder whose list of files updates itself.
Finder > File > New Smart Folder -
Lists the extended attributes of a file, including the quarantine flag that macOS sets on downloads.
xattr -l ~/Downloads/app.dmg
Clipboard 2
-
Find and paste something you copied earlier from the clipboard history in Spotlight.
Command-4 show your clipboard history -
Pastes copied text in the style of the surrounding content, not the source.
Screenshots and images 2
-
Paste a screenshot straight into a chat or email without a file on your desktop.
Control-Shift-Command-3 whole screen to the clipboard -
Make a video of your whole Mac screen or one area, without installing anything.
Record Selected Portion drag the frame, click Record
SSH 1
-
Saves an SSH key passphrase in the macOS keychain, so it is not asked again.
ssh-add --apple-use-keychain ~/.ssh/id_ed25519
Time Machine 1
-
Reports whether a file, folder or volume is excluded from Time Machine backups.
tmutil isexcluded ~/Projects/app/node_modules
Nothing in this filter yet.