Utility to take screenshots and screen recordings. More information: https://ss64.com/osx/screencapture.html.
screencapture {{path/to/file.png}}
screencapture -C {{path/to/file.png}}
screencapture -P
screencapture -i {{path/to/file.png}}
screencapture -T {{seconds}} {{path/to/file.png}}
screencapture -v {{path/to/file.mp4}}