Linux command
scrot 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Example
scrot
Example
scrot capture.png
Example
scrot -s
Example
scrot -is
Example
scrot -s -l color=[x11_color]
Example
scrot -u
Example
scrot -c -d 10
说明
scrot (SCReenshot) is a simple command-line screen capture utility for X11. It can capture the entire screen, specific windows, or user-selected regions. Screenshots are saved as PNG, JPEG, or GIF files. The tool supports delayed captures, thumbnails, and executing commands on the resulting image (useful for automatic uploading or editing). Special format strings allow dynamic filenames based on date, time, and dimensions.
参数
- -s, --select
- Interactively select a window or rectangle with mouse
- -u, --focused
- Capture the currently focused window
- -b, --border
- Include window border with -u
- -d, --delay _sec_
- Wait _sec_ seconds before taking shot
- -c, --count
- Display countdown when using delay
- -q, --quality _num_
- Image quality (1-100) for JPEG
- -t, --thumb _num_
- Generate thumbnail of specified percentage
- -e, --exec _cmd_
- Execute command on saved image
- -l, --line _style_
- Set line style for selection (color, width, etc.)
- -i, --ignorekeyboard
- Don't exit selection mode on keyboard input
- -p, --pointer
- Include mouse pointer in screenshot
- -o, --overwrite
- Overwrite file if it exists
FAQ
What is the scrot command used for?
scrot (SCReenshot) is a simple command-line screen capture utility for X11. It can capture the entire screen, specific windows, or user-selected regions. Screenshots are saved as PNG, JPEG, or GIF files. The tool supports delayed captures, thumbnails, and executing commands on the resulting image (useful for automatic uploading or editing). Special format strings allow dynamic filenames based on date, time, and dimensions.
How do I run a basic scrot example?
Run `scrot` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -s, --select do in scrot?
Interactively select a window or rectangle with mouse