LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   open default program from command line (https://www.linuxquestions.org/questions/linux-newbie-8/open-default-program-from-command-line-623775/)

zensunni 02-25-2008 03:04 PM

open default program from command line
 
Is there an option to open a default program for a specific file, as if you double clicked it in gnome? It'd speed things up a lot for me.

acid_kewpie 02-25-2008 03:12 PM

looks like there is. gnome-open. and if you wanted to be slick about it, "go" makes a very clever and cunning alias for shorthand.

alias go=$(which gnome-open)
go file.doc

zensunni 03-02-2008 01:19 PM

Double thanks! One for the command and two for showing me the aliases.

acid_kewpie 03-02-2008 01:49 PM

well it's hard to resist a command legitmately called "go" no?


All times are GMT -5. The time now is 05:56 PM.