Open File From Terminal with Preferred Application in Ubuntu

view full story

http://ubuntuguide.net – This tutorial will explain how to open file from console with preferred application in Ubuntu, just like when double-click on a .mp3 file in nautilus, rhythmbox player launches and plays the music, also urls can be open with the default web browser from the terminal. There’re following command tools do this work: gnome-open opens a file with Gnome’s default application kde-open opens a file with KDE’s default application xdg-open opens a file with X’s default application Usage: I’m running on Ubuntu’s default Unity desktop, so I uses xdg-open or gnome-open (HowTos)