Shortcuts and commands that earn their keep on a daily-driver Mac.
Upgrading and Checking Packages
1 2 3 4 5 6 7 8 9
| bubu brew doctor
ncu -g npm doctor
gem update gem cleanup
|
For machine reproducibility (declarative install list), see Brewfile in Mac development setup.
CLI Utilities
1 2 3 4 5 6 7
| pbcopy < file.txt pbpaste > file.txt say "build finished" caffeinate -i make release screencapture -i clip.png sips -Z 1024 in.png --out out.png mdls -name kMDItemKind file
|
Keyboard Shortcuts
Mac keyboard shortcuts
Common Shortcuts
| Shortcut |
Action |
⌘, |
Open preferences for the front app |
⇧⌘T |
Reopen the last closed tab |
⇧⌘[ / ⇧⌘] |
Previous / next tab |
⌃⌘F |
Toggle full screen |
⌘W / ⌥⌘W |
Close window / close all windows |
⌃⌘Q |
Lock screen immediately |
⌘⇧3 / ⌘⇧4 / ⌘⇧5 |
Full / region / capture overlay |
Finder
| Shortcut |
Action |
⇧⌘. |
Toggle show hidden files |
⌘↑ / ⌘↓ |
Parent folder / open selection |
⌘⇧G |
Go to folder by path |
⌘⌥V |
Move (cut/paste) after ⌘C |
| Space |
Quick Look preview |
System Sliders (open the right pane fast)
⌥ plus any media key opens the matching System Settings pane. Add ⇧ to step in finer increments:
| Shortcut |
Action |
⌥-Volume |
Open Sound settings |
⌥⇧-Volume |
Adjust volume in smaller steps |
⌥-Brightness |
Open Displays settings |
⌥⇧-Brightness |
Adjust brightness in smaller steps |
Text Editing
⌃A, ⌃E, ⌃K, ⌃Y work in any standard text field, since AppKit borrows Emacs bindings.
| Shortcut |
Action |
⌥← / ⌥→ |
Jump by word |
⌥⌫ |
Delete previous word |
⌃A / ⌃E |
Start / end of line |
⌃K |
Kill from cursor to end of line |
⌃Y |
Yank (paste killed text) |
fn fn |
Dictation (toggle in Keyboard settings) |