I'm have a file called t-0.8.eps.
How can I open this file in the shell?
I am using Mac and when I click .eps files the preview (the name of the software to read PDFs) says failed.
Files with the .eps extension are usually encapsulated postscript. You can view them with gv:
gv t-0.8.eps
Or with your favorite PDF viewer:
evince t-0.8.eps
Or even with an image editor
gimp t-0.8.eps
sudo apt-get install gv or sudo apt-get install evince. Anyway, you should have a pdf viewer installed, try okular. If none of these work, please update your question with the output of file t-0.8.eps.
file t-0.8.eps as I requested. Apart from that, you could try macghostview available for OSX
In general, you can use open from the terminal to open any file with its default application (see this SO question). open is Mac OS-specific. On GNU/Linux, the equivalent is usually xdg-open.
Also, for your reference, you can try to find out what type of file a file really is (regardless of its extension) using the file command.
open do exactly the same thing as double clicking the file (which is what the OP did)?
.eps file is incorrectly created (see the OP's comment)
preview failed, so open will make no difference.