• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

gnome-screenshot Command Examples in Linux

by admin

gnome-screenshot is a command-line utility that allows you to capture screenshots of the screen, a window, or a user-defined area, and save the image to a file. It is a part of the GNOME desktop environment and can be used to quickly and easily take screenshots without the need for a separate graphical application.

With gnome-screenshot, you can capture the entire screen, a specific window, or a user-defined area by selecting the rectangular region to be captured. It also allows you to take screenshots with a delay, allowing you to set a timer before the screenshot is taken. This can be useful for capturing screenshots of menus or other elements that may disappear when the screenshot is taken.

Once the screenshot is taken, gnome-screenshot will save the image to a file in the user’s home directory, with a default name of Screenshot-[year]-[month]-[day]-[hour]-[minute]-[second].png. The format of the file can be changed to jpg, gif or bmp by passing the appropriate flag.

gnome-screenshot Command Examples

1. Take a screenshot and save it to the default location, normally `~/Pictures`:

# gnome-screenshot

2. Take a screenshot and save it to the named file location:

# gnome-screenshot --file path/to/file

3. Take a screenshot and save it to the clipboard:

# gnome-screenshot --clipboard

4. Take a screenshot after the specified number of seconds:

# gnome-screenshot --delay 5

5. Launch the GNOME Screenshot GUI:

# gnome-screenshot --interactive

6. Take a screenshot of the current window and save it to the specified file location:

# gnome-screenshot --window --file path/to/file

7. Take a screenshot after the specified number of seconds and save it to the clipboard:

# gnome-screenshot --delay 10 --clipboard

8. Display the version:

# gnome-screenshot --version

Filed Under: Linux

Some more articles you might also be interested in …

  1. How to allow ssh with empty passwords in Linux
  2. expr: Evaluate expressions and manipulate strings
  3. k6 Command Examples
  4. CentOS / RHEL 5 : dm-multipath file /etc/sysconfig/mkinitrd/multipath explained
  5. josm Command Examples
  6. fast: Test your download and upload speed using fast.com
  7. nmcli: command not found
  8. Linux OS service ‘iscsid’
  9. llc Command Examples
  10. convert: ImageMagick image conversion tool

You May Also Like

Primary Sidebar

Recent Posts

  • Vanilla OS 2 Released: A New Era for Linux Enthusiasts
  • mk Command Examples
  • mixxx Command Examples
  • mix Command Examples

© 2025 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright