I used to work on the Mac terminal before and I used:
open file2open.pdf
and the PDF file would be opened on preview or whatever my default viewer was. When I use it in the terminal in Ubuntu I get this error message:
Couldn't get a file descriptor referring to the console
Best Answer
Most desktop environments (generic)
GNOME (generic)
until Xenial (16.04):
starting with Artful (17.10):
(
xxx
= some file extension). With this command the default app forxxx
will be invoked (for example evince if you want to open PDF).Application-specific
Using Evince, GNOME’s default document viewer:
Using Okular, KDE’s default document viwer: