Find how to open a file from terminal

view story

http://forums.fedoraforum.org – Hello there!! Noob question here: I was trying to find a command to help me find what programs installed could open a file. For example: Code: $ super_magic_command ~/file.txt $ txt: nano, vi, vim, gedit, sublime_text $ $ super_magic_command ~/video.mp4 $ mp4: vlc, mplayer, smplayer $ $ super_magic_command ~/music.mp3 $ mp3: clementine, amarok, rhythmbox I've already googled for a while and searched in different forums but I couldn't find anything. Is there something like that? Thanks in advance!! (HowTos)