HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

screencapture — Utility to take screenshots and screen recordings. More information: <https://keith.github.io/xcode-

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandscreencaptureandtakescreenshotscliscreenutility
macos

Problem

How to use the screencapture command: Utility to take screenshots and screen recordings. More information: <https://keith.github.io/xcode-man-pages/screencapture.1.html>.

Solution

screencapture — Utility to take screenshots and screen recordings. More information: <https://keith.github.io/xcode-man-pages/screencapture.1.html>.

Take a screenshot and save it to a file:
screencapture {{path/to/file.png}}


Take a screenshot including the mouse cursor:
screencapture -C {{path/to/file.png}}


Take a screenshot and open it in Preview, instead of saving:
screencapture -P


Take a screenshot of a selected rectangular area:
screencapture -i {{path/to/file.png}}


Take a screenshot after a delay:
screencapture -T {{seconds}} {{path/to/file.png}}


Make a screen recording and save it to a file:
screencapture -v {{path/to/file.mp4}}

Code Snippets

Take a screenshot and save it to a file

screencapture {{path/to/file.png}}

Take a screenshot including the mouse cursor

screencapture -C {{path/to/file.png}}

Take a screenshot and open it in Preview, instead of saving

screencapture -P

Take a screenshot of a selected rectangular area

screencapture -i {{path/to/file.png}}

Take a screenshot after a delay

screencapture -T {{seconds}} {{path/to/file.png}}

Context

tldr-pages: osx/screencapture

Revisions (0)

No revisions yet.