• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
Source Digit

Source Digit

Linux, Ubuntu Tutorials & News, Technology, Gadgets & Gizmos

  • Home
  • How To
  • Ubuntu
  • Instagram
  • Blogging
  • Android
  • WordPress
  • +More
    • Cloud Computing
    • Gadgets
    • Social Media
    • Technology
  • Write for Us
Home / How To / How to Take Screenshot in Ubuntu Terminal

How to Take Screenshot in Ubuntu Terminal

By Sourabh / October 7, 2022 Category: How To, Ubuntu

How to take screenshot in Ubuntu terminal? Here is the shell script to take screenshot automatically; command to take screenshot in Ubuntu. The command line screenshot tool to take screenshot using shell script.


Command to Take Screenshot in Ubuntu

gnome-screenshot is a GNOME utility for taking screenshots of the entire screen, a window or an user-defined area of the screen, with optional beautifying border effects. gnome-screenshot command can capture the screen, a window, or an user-defined area and save the snapshot image to a file.

gnome-screenshot command syntax

gnome-screenshot [ -c ] [ -w ] [ -a ] [ -b ] [ -B ] [ -p ]
gnome-screenshot [ -d SECONDS ] [ -e EFFECT ] [ -i ] [ -f FILENAME ] [ –display DISPLAY ]

gnome-screenshot command options

-c, –clipboard: Send the grab directly to the clipboard.
-w, –window: Grab the current active window instead of the entire screen.
-a, –area: Grab an area of the screen instead of the entire screen.
-b, –include-border: Include the window border within the screenshot.
-B, –remove-border: Remove the window border from the screenshot.
-p, –include-pointer: Include the pointer with the screenshot.
-d, –delay=SECONDS: Take the screenshot after the specified delay [in seconds].
-e, –border-effect=EFFECT: Add an effect to the outside of the screenshot border. EFFECT can be shadow'' (adding drop shadow),border” (adding rectangular space around the screenshot), vintage'' (desaturating the screenshot slightly, tinting it and adding rectangular space around it) ornone” (no effect). Default is “none”.
-i, –interactive: Interactively set options in a dialog.
-f, –file=FILENAME: Save screenshot directly to this file.
–display=DISPLAY: X display to use.
-?, -h, –help: Show a summary of the available options.

Using gnome-screenshot command

The simplest way to take screenwchot using gnome-screenshot command is to run the command without any syntax:

gnome-screenshot

This will take the screenshot instantly.

If you wish to to take a screenshot with a delay, enter the command with the number of seconds you want to delay. For example to take screenshot with a delay of 5 seconds, use the following command:

gnome-screenshot -d -5

Note that gnome screenshot command is the default tool. You don’t have to install it additionaly.

Primary Sidebar

Latest Posts

How To Run Fsck Manually In Linux To Fix Unexpected Inconsistency

How To Fix Broken Packages On Ubuntu From Terminal

Re Execute The Previous Command In Linux Ubuntu Command Line

How Much RAM Is Needed For Ubuntu PC

How To Find Large Files And Directories In Linux Command Line

How To Use Clear Command History In Linux Terminal

Linux Command To Check RAM Size In Ubuntu Terminal In GB

How To Install Proprietary Drivers In Linux Ubuntu Using Terminal

How To Shutdown Linux With A 15 Minute Delay And Message

Free AI Courses With Certificate For Beginners In India

© 2026 Source Digit • Linux, Ubuntu Tutorials & News, Technology, Gadgets & Gizmos

  • Home
  • About
  • Privacy Policy
  • Terms & Conditions
  • Contact Us
  • Sitemap