screencapture
Utility to take screenshots and screen recordings. tldr-pages
On macOS 1 Sigma rule name it
macOS
Take a screenshot and save it to a file
screencapture path/to/file.pngIdentifyTake a screenshot including the mouse cursor
screencapture -C path/to/file.pngIdentifyTake a screenshot and open it in Preview, instead of saving
screencapture -PIdentifyTake a screenshot of a selected rectangular area
screencapture -i path/to/file.pngIdentifyTake a screenshot after a delay
screencapture -T seconds path/to/file.pngIdentifyMake a screen recording and save it to a file
screencapture -v path/to/file.mp4Identify