Screenshots are vital when reviewing an application or giving visual assistance to those problems whose solution is difficult to jot down in words. For starters, when you press the ‘Prt Scr’ i.e. ‘Print Screen’ keyboard button the computer will automatically print what is currently being displayed on the screen & prompt you to save it as a file. The Screenshot application found under GNOME provides further options to finetune screenshot capturing as per your needs. While this will work fine when you’re running under a GUI but what would you do if you want to take screenshot when you are in a shell(virtual console) or when your GUI is broken? The print screen button on your keyboard won’t work in at the command prompt. In such a case you’ll need to use the following command.

$ import -window root /home/ShutterTux/Pictures/screenshot.png

The above command will save the screenshot of the current screen without any delay into the ‘Pictures” directory of user ‘LaymanLinux’ with the file name as ‘screenshot.png’. The file saving location need not be necessarily pictures directory & you can give any location in your home directory. Do remember to change the name of the output screenshot file to avoid conflicts.

You can even issue the command with a delay;

$ delay 20; import -window root /home/ShutterTux/Pictures/screenshot2.png

The above command will take screenshot after 20 seconds and save it to the location entered by the user.

For further application of the import command, you can refer this page.