I am fairly new with a Mac (Mac from work), and get more and more disappointed. Now I am blocked again, because I did not find an EASY way to open an image from the command line…
Here is how it works in Linux (simple, no installation required):
eog test.jpg
How to achieve the similar thing on a Mac?
Best Answer
open test.jpg
will open the image in the default application for JPEG files (on most Macs this will be Preview) andopen -a Pixelmator test.jpg
will open in the appPixelmator
if you have it installed. ObviouslyPixelmator
can be replaced with any application that can open the file.The
open
command is quite powerful, it allows for opening files, directories and even URLs. I suggest you read theman
page.