Sunday, August 14, 2011

Taking screenshots of Terminal window in linux

import screenshot.jpg

This will allow you to select a rectangle using your mouse. The moment you let go of your left mouse button, a screenshot with the contents of that rectangle will be saved in the current directory.
And then there’s scrot.

scrot -d 4 screenshot.png

This will take a screenshot of your entire desktop, with a delay of 4 seconds between launching the command and saving the screenshot.png file. Use

scrot -c -d 4 screenshot.png

to also display a countdown in the console. Use

scrot -q 80 -c -d 4 screenshot.jpg

this command also used

xwd | convert xwd:- screenshot_$(date +%Y%m%d_%H%M%S).png

To Take Screen Short of Remote Desktop

If you want to take a screenshot of remote Linux desktop

DISPLAY=”:0.0″ import -window root screenshot.png