SuperAPI AI Directory

linux-screenshot

Office & productivity

View repository

Updated 10-16 00:04

About this skill

Linux Screenshot

Use scrot or gnome-screenshot to capture the screen.

Command Reference

Using scrot (general)

# 全屏截图
scrot "/tmp/screenshot_$(date +%Y%m%d_%H%M%S).png"

# 选区截图
scrot -s "/tmp/region_$(date +%Y%m%d_%H%M%S).png"

# 延时截图
scrot -d 3 "/tmp/delayed_$(date +%Y%m%d_%H%M%S).png"

Using gnome-screenshot (GNOME desktop)

gnome-screenshot -f "/tmp/screenshot_$(date +%Y%m%d_%H%M%S).png"

Installation

# Debian/Ubuntu
sudo apt install scrot

# Fedora
sudo dnf install scrot

Output Specification

  • Saved to the /tmp/ directory by default
  • After the screenshot is complete, inform the user of the save path