Take screenshot and display the image from linux command prompt

 Take screen shot and display the image from linux command prompt

Question: How to take screen shot from linux command prompt and how to display the image from linux command prompt.

Answer: To take screen shot use import command and to display the image use display command.To take screen shot and display the image in linux, Graphical user interface(GUI) is needed.

Take screenshot and display the image from linux command prompt

 

Install the below mentioned rpm to take screen shot and display image of your linux box.

RPM:
ImageMagick-6.2.8.0-3.el5.4

1

 

How to take screen shot of current desktop use follow below steps

Open command prompt and hit below command
#import pic1.jpg

After hitting the command use your mouse to capture the screen.

2

Once you release your mouse then the image will save automatically in your present working directory.

3

To view the image from command prompt use the below command

#display pic1.jpg

The image will be displayed in the screen.

4




Leave a Reply

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