xdg-open

Open a file or URL in the user's preferred application. More information: https://portland.freedesktop.org/doc/xdg-open.html.

xdg-open .

xdg-open https://example.com

xdg-open path/to/image

xdg-open path/to/pdf

xdg-open --help