Linux xdg-open — replacement for start in windows
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.
Related Articles:
- 2009/07/20 bash tutorial for begineer and experienced.
- 2009/11/04 Using nullglob and dotglob in bash scripts.
- 2009/11/04 Photo Resizing
- 2009/11/03 Citibank Doesn\’t Want Your Business, Linux Users
- 2009/10/30 Using autologin for ftp sessions.
Authored By Amit Agarwal
Amit Agarwal, Linux and Photography are my hobbies.Creative Commons Attribution 4.0 International License.