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.
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: Windows-Linux
11 Comments:
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
I got it now. You have to give the pathname as well.
Simple:
Display 'image name' ==> if image is in CWD
Display /home/Desktop/'image name' ==> if image is not in CWD( Give path of image)
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.
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.
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.
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!
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.
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.
Thanks to my father who stated to me about this weblog, this webpage is actually awesome.
Respect and I have a neat give: Who Repairs House Windows house hunters renovation
Post a Comment
Subscribe to Post Comments [Atom]
<< Home