in

How to Take Screenshots on Linux Using the Command Line

- - No comments
A screenshot is an image taken by the computer user to record the visible items displayed on the monitor, television, or any other visual output device. In the Linux world, screenshots are very useful if you want to get proper support for your problems. Usually, many people that post bugs or errors they encountered while using Linux are asked to submit screenshots of their desktop.  In other cases, screenshots are used by many users to show off their customized desktops. Hashtags like #showyourdesktopfriday are rather quite popular amongst Google Plus users. And mind you, most of the posts in this category include screenshots of Linux desktops.

Many users take screenshots on Linux using the Print Screen button. Simply pressing the Print Screen button makes a camera-like clicking noise on your desktop and the computer asks you where to save the image. If, however, you are a command line junkie and spend most of your time perusing lines and lines of code, you won't like this GUI-esque method of taking screenshots. For you, nothing but a simple command to do that would suffice. For these fastidious command-line addicts, fortunately, there are a few solutions that let them take pictures of their desktop without leaving the ever-familiar terminal. So, if you're one of those users waiting to show of their desktop whilst impatiently staring at a blinking cursor, here are some tips on how to take screenshots on Linux using the command line.

When you take a screenshot using the print screen button, you are using the Gnome screenshot tool. Instead of calling it using the print screen button, you can also ask it to take a screenshot using the command line. To do that, simply open your terminal and type in the following command:

gnome-screenshot


This will simply take a screenshot of the whole desktop and ask you where to save it. 



Taking screenshot of a particular region on the screen:

If you want to take screenshot of a particular area, type in the following command:

gnome-screenshot -a

This will turn your mouse pointer into crosshairs thus allowing you to select any area you want as a screenshot.


Taking screenshot of the command line itself:

If you want to take screenshot of the command line window itself, you can do that by typing in the following command:

gnome-screenshot -w

Also, if you want to take a screenshot without the window border, you can type in the following command:

gnome-screenshot -w -B


Adding effects to your screenshot:

If you want to add a border or a shadow to your screenshots, you can do that by typing in the following command:

gnome-screenshot -w -e shadow

Or, you can add a border to your screen grabs using the following command:

gnome-screenshot -w -e border


Taking screenshots with delays:

You can also add a delay to the screenshots so that you can access a particular menu or a window that normally won't be shown if you take the screenshot instantly.

gnome-screenshot -d 5

The aforementioned command will add a delay of 5 seconds before the screenshot.


Written by: Abhishek, a regular TechSource contributor and a long-time FOSS advocate.

No comments

Post a Comment