adb shell screencap <file> 命令详解

截取屏幕并保存到设备(如 /sdcard/sc.png)

命令语法
adb shell screencap <file>
命令说明
截取屏幕并保存到设备(如 /sdcard/sc.png)
示例
$ adb shell screencap /sdcard/shot.png
截屏与录屏相关命令

adb shell screencap <file> 用法说明

adb shell screencap <file> 是「截屏与录屏」分类下的常用命令,作用是:截取屏幕并保存到设备(如 /sdcard/sc.png)。

典型用法如下:adb shell screencap /sdcard/shot.png。你可以查看本页上方同组的相关命令,或直接复制到终端运行。

常见问题解答

adb shell screencap <file> 是什么?
adb shell screencap <file> 用于截取屏幕并保存到设备(如 /sdcard/sc.png),属于「截屏与录屏」相关命令。
adb shell screencap <file> 怎么用?
在终端执行 adb shell screencap /sdcard/shot.png 即可,具体参数请按实际环境调整。
还有哪些相关命令?
截屏与录屏分类下还有 6 条相关命令,见本页上方「相关命令」。

同类工具