If you ever wonder why MacOS users have a nice little command-line application called “open” to open an arbitrary file with the correct application, and you – a proud Linux user – don’t, you have come to the right place :)

If you use GNOME (KDE sucks :P) you probably have a nice little command-line application called “gnome-open”.

It does exactly what you are thinking. It find the mime-type of the file you pass as a parameter and use the GNOME configured application for that mime-type.

Since I am lazy (and probably you too) don’t forget to put this on your .bashrc (or equivalent):

alias open="gnome-open" 
alias o="gnome-open" 

Have fun with your console!

(Probably KDE (and others) have a similar application)

About

photo of Ruben Fonseca

My name is Ruben Fonseca. I'm a Computer Science and Systems Engineer from Portugal that loves FLOSS.

I'm currently taking some time off to myself, but feel free to contact me anytime at or via LinkedIn:

View Ruben Fonseca's profile on LinkedIn

Feeds

1 Comment | rss | atom | xml | json

  1. avatar eu

    fdx es um paneleiro d merda nao sabes nada

    :-D

new comment New Comment