Does the command line have a way to get a recommended list of programs used to open a particular file, based on the file type? For example, a
open with... recommendation using the programs
I use the command line for most things, but sometimes I forget the name of a program that I want to use to open a particular type of file.
BTW I am using Ubuntu 13.10 if that helps.
Thanks to @slm 's selected answer below, I made the following bash script in a file called
xdg-mime query default $(xdg-mime query filetype $1)
Add as an alias or execute directly as an
openwith command. Hope this helps!