Friday, 7 November 2014

How to open image files from Terminal in Ubuntu

This is a quick way of opening a image file from the Terminal window in Ubuntu. Unlike the executable files you cannot open the image file just by typing the file name on the Terminal window, instead you have to initiate the appropriate program to open the image file.

The default image viewer application in Ubuntu is the Gnome Image viewer also known as Eye of Gnome of eog.

Open the Terminal window in Ubuntu (Alt + Cntrl + T) and type eog to open the image viewer program.














To open the image use the image name followed  by the eog command.

eog <name of the image file> // You can use tab to auto-complete the filename.

The Terminal will hold the access as long as the application is open and you would not be able to do much on the terminal. Thus you can have the control of the terminal you can run the application in the background using " & " at the end of the command i.e

eog test123.jpg & // This will open the test123 image file while you still have control of the Terminal.



Hope this quick tip was helpful.

Labels:

11 Comments:

At 3 July 2019 at 23:46 , Anonymous Anonymous said...

Not working. There is an error saying that the given location does not exist, yet I can view the image file well enough when I go to the file location

 
At 3 July 2019 at 23:48 , Anonymous Anonymous said...

I got it now. You have to give the pathname as well.

 
At 8 December 2019 at 22:06 , Blogger Haris Javed said...

Simple:

Display 'image name' ==> if image is in CWD

Display /home/Desktop/'image name' ==> if image is not in CWD( Give path of image)

 
At 19 January 2020 at 09:25 , Blogger zuvman said...

Ive ran into this many times by not having the path correct. The best way is to navigate to the location in the cmd or right click the folder in gui and open in command line. Then type pwd and will give you what you should be putting in as path.

 
At 25 November 2020 at 01:17 , Anonymous Anonymous said...

Its like you read my mind! You seem to know so much about this, like you wrote the book in it or something. I think that you could do with some pics to drive the message home a bit, but other than that, this is magnificent blog. A great read. I'll definitely be back.

 
At 25 November 2020 at 01:32 , Anonymous erectile dysfunction said...

Admiring the dedication you put into your website and detailed information you offer. It's great to come across a blog every once in a while that isn't the same outdated rehashed information. Fantastic read! I've bookmarked your site and I'm including your RSS feeds to my Google account.

 
At 25 November 2020 at 03:06 , Anonymous herbal erection pills said...

I was recommended this blog via my cousin. I am now not positive whether this publish is written by him as nobody else recognise such specified about my trouble. You're amazing! Thank you!

 
At 25 November 2020 at 04:18 , Anonymous cheap erectile dysfunction pills online said...

Hi mates, how is everything, and what you would like to say on the topic of this paragraph, in my view its genuinely remarkable in support of me.

 
At 25 November 2020 at 05:25 , Anonymous erection pills viagra online said...

When some one searches for his necessary thing, therefore he/she wants to be available that in detail, thus that thing is maintained over here.

 
At 25 November 2020 at 06:27 , Anonymous top erection pills said...

Thanks to my father who stated to me about this weblog, this webpage is actually awesome.

 
At 27 September 2024 at 18:44 , Anonymous Anonymous said...

Respect and I have a neat give: Who Repairs House Windows house hunters renovation

 

Post a Comment

Subscribe to Post Comments [Atom]

<< Home