bgschaid_lists at ice-sf.at
2007-Jun-20 22:00 UTC
[CentOS] Program that opens documents with their associated program
This may be a TOTALLY trivial question (and maybe inappropriate for this list), but I don't know where else to ask it: On my Mac I've got this wonderful command line utility that opens documents with the program that is associated to them in the Finder (the graphical file manager) like they were clicked in the file-manager. For instance: if I type open testdocument.doc it opens the file with Word or OpenOffice (whatever is associated with the document type .doc). This is quite convenient (don't have to leave the shell to open a document) My question: Is there a similar command on CentOS (or more specifially GNOME, because obviously it has to take the associations from some kind of GUI-filemanager)? I was looking around, but this is the kind of question where googling doesn't turn up anything useful unless you know the name of the command. Thanks
Steve Searle
2007-Jun-20 22:17 UTC
[CentOS] Program that opens documents with their associated program
Around 11:00pm on Wednesday, June 20, 2007 (UK time), bgschaid_lists at ice-sf.at scrawled:> > This may be a TOTALLY trivial question (and maybe inappropriate for > this list), but I don't know where else to ask it: > > On my Mac I've got this wonderful command line utility that opens > documents with the program that is associated to them in the Finder > (the graphical file manager) like they were clicked in the > file-manager. For instance: if I type > > open testdocument.doc > > it opens the file with Word or OpenOffice (whatever is associated with > the document type .doc). This is quite convenient (don't have to leave > the shell to open a document) > > My question: Is there a similar command on CentOS (or more specifially > GNOME, because obviously it has to take the associations from some > kind of GUI-filemanager)? I was looking around, but this is the kind > of question where googling doesn't turn up anything useful unless you > know the name of the command.Yes - gnome-open Steve -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting a bad thing? 23:15:55 up 3 days, 20:49, 1 user, load average: 0.04, 0.02, 0.00