use of the command "xv" in the terminal to display an image

Asked by Lopamudra Kundu on 2009-10-16

I am working in image processing.I would like to view an image by writing command in the terminal.In general a .pgm file can be viewed by typing 'xv filename' in the terminal.I have done it in the lab.But I cant do it at my pc.The Bash command is missing here.I tried to download xnview software,but the problem remains.
What should I do to view a .pgm image in the terminal by typing suitable command?

Question information

English Edit question
Ubuntu eog Edit question
No assignee Edit question
Solved by:
Larry Jordan
Last query:
Last reply:
Cristi Nistor (cristi-nistor) said : #1

What is this output when you run the command?

Best Larry Jordan (larryjor) said : #2

     I believe XV is one of those softwares that is purchased and therefore not installed by default. Sounds like you have need of it that justifies buying it for yourself - I found it at and the site is a good place to investigate xv. Try that.

Thanks Larry Jordan, that solved my question.