Open System Preferences on your Mac and select “App Store.” Then click “Install macOS Updates (or “Install OS X Updates” for older software).
// To minimize all open windows in MacOS:
Minimize and Hide All Windows in Mac OS X with Command+Option+H+M.
// To stop iTunes from opening automatically when you connect your iPhone
Open iTunes and then go to Preferences by using keyboard shortcut Command-comma or by going to iTunes > Preferences. Next, click the Devices tab and then check the box for Prevent iPods, iPhones, and iPads from syncing automatically.
// How to Change Your Mac's Default Screenshot Directory
Click Command+N to open a new Finder window.
Click Command+Shift+N to create a new folder, where your screenshots will go.
Type "terminal" and select Terminal.
Ignoring the quotation marks, type "defaults write com.apple.screencapture location " making sure to enter the space at the end after 'location'.
Click Enter.
// For JPG instead of PNG:
defaults write com.apple.screencapture type jpg;killall SystemUIServer