← 返回命令列表

Linux command

gnome-screenshot 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Example

gnome-screenshot

Example

gnome-screenshot -f path/to/file.png

Example

gnome-screenshot -c

Example

gnome-screenshot -d 5

Example

gnome-screenshot -w

Example

gnome-screenshot -a

Example

gnome-screenshot -i

Example

gnome-screenshot -p

说明

gnome-screenshot is a GNOME utility that captures the screen, a window, or a user-defined area and saves the resulting image to a file or clipboard. It provides both command-line and interactive modes for flexible screen capture. Screenshots are saved to ~/Pictures by default. The tool integrates with the GNOME desktop for quick capture workflows.

参数

-c, --clipboard
Send screenshot to clipboard instead of saving to file
-w, --window
Capture the currently active window only
-a, --area
Capture a user-selected screen area
-p, --include-pointer
Include the mouse pointer in the screenshot
-d, --delay=SECONDS
Wait specified seconds before taking screenshot
-e, --border-effect=EFFECT
Apply visual effect (shadow, border, vintage, or none)
-i, --interactive
Launch interactive dialog for screenshot options
-f, --file=FILENAME
Specify the output filename
--display=DISPLAY
Specify the X display to capture

FAQ

What is the gnome-screenshot command used for?

gnome-screenshot is a GNOME utility that captures the screen, a window, or a user-defined area and saves the resulting image to a file or clipboard. It provides both command-line and interactive modes for flexible screen capture. Screenshots are saved to ~/Pictures by default. The tool integrates with the GNOME desktop for quick capture workflows.

How do I run a basic gnome-screenshot example?

Run `gnome-screenshot` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -c, --clipboard do in gnome-screenshot?

Send screenshot to clipboard instead of saving to file