screencapture
The command line tool "screencapture" is a built-in utility in macOS that allows users to capture screenshots and recordings of their screen. It offers several options for capturing specific areas, windows, or the entire screen. The tool can be accessed through the terminal application by typing "screencapture" followed by various flags and options. Commonly used flags include "-i" for interactive capture, "-c" to copy the capture to the clipboard, or "-T" to set a time delay before capturing. Screenshots captured using "screencapture" are saved as image files on the desktop by default, but the output destination can be customized using the "-t" flag. Overall, "screencapture" is a versatile and convenient tool for capturing and saving screen content on macOS.
List of commands for screencapture:
-
screencapture:tldr:4c46c screencapture: Take a screenshot of a selected rectangular area.$ screencapture -i ${filename-png}try on your machineexplain this command
-
screencapture:tldr:66c0d screencapture: Take a screenshot including the mouse cursor.$ screencapture -C ${filename-png}try on your machineexplain this command
-
screencapture:tldr:936b2 screencapture: Take a screenshot and open it in Preview, instead of saving.$ screencapture -Ptry on your machineexplain this command
-
screencapture:tldr:c85e3 screencapture: Make a screen recording and save it to a file.$ screencapture -v ${filename-mp4}try on your machineexplain this command
-
screencapture:tldr:e03a7 screencapture: Take a screenshot and save it to a file.$ screencapture ${filename-png}try on your machineexplain this command
-
screencapture:tldr:e4a10 screencapture: Take a screenshot after a delay.$ screencapture -T ${seconds} ${filename-png}try on your machineexplain this command