Forrest logo
back to the screencap tool

screencap:tldr:24d76

screencap: Take a screenshot.
$ screencap ${filename}
try on your machine

The command screencap ${filename} is used to capture a screenshot of the current screen on an Android device.

Here is what each component of the command represents:

  • screencap: This is the command-line utility provided by Android that enables capturing device screen contents.
  • ${filename}: This is a placeholder for the desired filename or file path where the captured screenshot will be saved. You need to replace ${filename} with the actual name you want to give to the screenshot file. It's typically recommended to use the file extension .png for image files.

For example, if you want to save the screenshot as "myscreenshot.png" on the device's internal storage, you would run the command as screencap /sdcard/myscreenshot.png.

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 screencap tool