10
2
If I click on a file in a GUI file explorer, a default program is used to open it. This is useful for files which I don't know how to open from the command line.
Is there a way to open a file with the default program using command-line instead?
Alternatively, is there a way, given a file extension, to determine a command to open it?
Exactly what I was looking for! Do you know if xdg-open can tell the command used to open, for example, PNG files ? – Gradient – 2013-01-31T03:08:35.310
I've updated my answer. – Dennis – 2013-01-31T03:24:15.570