In this series of mini posts I will teach you a Linux lesson every day, it can be command , tricks , how to etc. The post will cover for beginner to advanced level. Welcome to Linux terminal.Follow us and start learning Linux today
xdg–open is a Linux command used to open files in preferred applications, http, ftp URLs from the Terminal.
To browse a Wikipedia.org you can use the xdg command as follows and it will open the site in Mozilla Firefox
$ xdg-open http://wikipedia.org
To open a document (open office) , we can use
$ xdg-open mydoc.odt
and it will open the file in Open office.
Following Linux manuals may help you