Linux users can open files in a similar way in their X Window graphical user interface. But, if you want to open the file from the command-line, you need to type out at least the program name, oowriter, or do you?
$ oowriter cisco.doc
If GNOME is your window manager, use the gnome-open command as follow:
$ gnome-open cisco.doc
oowriter is automatically started up to open cisco.doc, if oowriter is indeed associated with the .doc file name extension.
For KDE users, use kde-open instead.
Alternatively, you can run the window-manager-neutral program called xdg-open. xdg-open is part of the xdg-utils package.
$ xdg-open cisco.doc
Another (better?) solution is to use ZSH aliases. Just add a line like "alias -s doc='soffice'" to your .zshrc and you will be able to just type the name of the file:
ReplyDelete$ cisco.doc
thanks Peter, your blog helped me in my search.
ReplyDeleteI didn't know how to open the stuff from command line.
Thank you. Just what I was looking for.
ReplyDeleteNice. Good post.
ReplyDeletenice post
ReplyDeleteim searching exactly for this
Thanks, that was very helpful!
ReplyDeleteThanks for the Info.!! :)
ReplyDeleteThanks for the info, very helpful!
ReplyDeleteThank you! This comment was really helpful
ReplyDeleteThank you ! It was really helpful
ReplyDeleteThanks. I've been dying for a way to do this since I discovered something similar when stuck on MacOS.
ReplyDeleteExcellent! That's what I have wanted to do! I just added
ReplyDeletealias o='kde-open'
in my .bashrc ;-)
thank you @Culop where to put alias on linux
ReplyDeleteon MacOSX (Tiger+) it is "open filename.doc"