xdg-open
Opens a file or URL in the user's preferred application.
- Open the current directory in the default file explorer:
xdg-open .
- Open a URL in the default browser:
xdg-open {https://example.com}
- Open an image in the default image viewer:
xdg-open {path/to/image}
- Open a PDF in the default PDF viewer:
xdg-open {path/to/pdf}
xdg-open --help
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).