Is there any way to automatically open a file with the correct program, when using the terminal? Something similar with double clicking a file in GUI.
So for example having a pdf file, not need to write
evince foo.pdf
in order to open it.
Is there any way to automatically open a file with the correct program, when using the terminal? Something similar with double clicking a file in GUI.
So for example having a pdf file, not need to write
evince foo.pdf
in order to open it.
xdg-open foo.pdf
– kenn Nov 13 '14 at 18:11