Screenshots on macOS
Keyboard shortcuts
You can capture the entire screen, a window, or just a portion of the screen.
⌘ + ⇧ + 3
Capture the whole screen.⌘ + ⇧ + 4
Capture a selection.⌘ + ⇧ + 4 + Space
Capture a window.⌘ + ⇧ + 5
Capture the whole screen, a selection or a window.
See more information in Take a screenshot on your Mac.
Command line
Command line tool that capture an image of the whole, or part of the screen.
-i
Capture screen interactively, by selection or window.-W
Start interaction in window selection mode.-o
In window capture mode, do not capture the shadow of the window.
More information in screencapture manual page.
Change default settings of screen capture
Disable shadow in screenshots:
Save screenshots to the ~/Downloads
Save screenshots in PNG format (other options: BMP, GIF, JPG, PDF, TIFF)
Disable datetime in screenshots filename
To apply the changes, you need to restart the SystemUIServer: