How to take screenshots in Linux

Screenshots in Linux:

It is a repeated problem with Linux, how to take screenshots in Linux. There are many ways to accomplish it and here it a list of them for reference.

1. Scrot:

scrot (SCReen shOT) is a simple command line screen capture utility that uses imlib2 to grab and save images. Multiple image formats are supported through imlib2’s dynamic saver modules.

#apt-get install scrot
$scrot
$scrot -s
 
scrot '%Y-%m-%d_$wx$h.png' -e 'mv $f ~/shots/' # This would create a file called something # like 2000-10-30_2560x1024.png and move it to your shots directory. 

2. Shutter:

Shutter is a feature-rich screenshot program. You can take a screenshot of a specific area, window, your whole screen, or even of  a website – apply different effects to it, draw on it to highlight  points, and then upload to an image hosting site, all within one  window.

 
#apt-get install shutter 

3. Import:

The import program is a member of the ImageMagick(1) suite of tools. It saves any visible window on an X server and outputs it as an image file. You can capture a single window, the entire screen, or any rectangular portion of the screen.

#apt-get install imagemagick
$ import screenshot.png
# Will show a + shaped pointer which upon clicking a window will save it

4. Gnome-screenshot:

Screenshot application for GNOME. This tool takes a picture of the desktop or of a window and saves it
into a file.

#apt-get install gnome-screenshot

5. Xwd:

Xwd is an X Window System window dumping utility.  Xwd allows X users to store window images in a specially formatted dump file.

 
#apt-get install x11-apps 
#apt-get install imagemagick 
 
$ xwd -silent -root | convert - screenshot.png 

6. Fbgrab:

#apt-get install fbcat
$ fbgrab my_screenshot

There are many other application to name a few kazam, kgrab, nanoshot etc .

Leave a Reply

Your email address will not be published. Required fields are marked *