Quantcast
Channel: FedoraForum.org
Viewing all articles
Browse latest Browse all 36135

Find how to open a file from terminal

$
0
0
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!!

Viewing all articles
Browse latest Browse all 36135

Trending Articles