Linux字符界面,截图使用Scrot。
1、安装
Ubuntu下执行如下命令即可安装。
sudo apt-get install scrot
2、使用
安装完成后,该命令使用格式如下:
scrot [options] [file]
例子(~ 用户主目录):
1、对全屏截图并保存文件名:
scrot ~/abc.png
设备截图直接保存到电脑
‘adb shell screencap -p | sed ‘s/\r$//’ > screen.png’
screen.png 是自定义截图图片名称