Forrest logo
back to the screencapture tool

screencapture:tldr:936b2

screencapture: Take a screenshot and open it in Preview, instead of saving.
$ screencapture -P
try on your machine

The command "screencapture -P" is used on macOS systems to capture a screenshot of the entire screen and save it as a file. Here's an explanation of the different components:

  • "screencapture" is the command-line utility in macOS used to capture screenshots.
  • "-P" is an option or flag for the screencapture command. It stands for "Preview" mode.
  • When you include the "-P" option with the screencapture command, it opens the captured screenshot in Preview application for further editing or saving, instead of saving it directly as a file.

In summary, the command "screencapture -P" captures the entire screen and immediately displays it in Preview for further editing or saving purposes.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the screencapture tool