Linux xdg-open — replacement for start in windows

2009-11-05 126 words 1 min read

if you want to open any document with the default document handler from the bash prompt or command prompt in linux then the simplest way to do that is use ”xdg-open”.

This can also be used in bash scripts to allow users to select which document to open without worrying about if a particular application is installed or not. Example could be where you have list of documents in the current directory (same kind or of different format.) and you want the user to select the document. In such a scenario you can take the user input for the filename and user ”xdg-open filename” to open the file irrespective of the file type or worrying about if xpdf is installed or abiword is installed or not.


author

Authored By Amit Agarwal

Amit Agarwal, Linux and Photography are my hobbies.Creative Commons Attribution 4.0 International License.

We notice you're using an adblocker. If you like our webite please keep us running by whitelisting this site in your ad blocker. We’re serving quality, related ads only. Thank you!

I've whitelisted your website.

Not now
This website uses cookies to ensure you get the best experience on our website. Learn more Got it