1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/linux/xdg-open.md

25 lines
473 B
Markdown
Raw Normal View History

2021-03-29 14:44:53 +02:00
# xdg-open
> Open a file or URL in the user's preferred application.
> More information: <https://portland.freedesktop.org/doc/xdg-open.html>.
2021-03-29 14:44:53 +02:00
- Open the current directory in the default file explorer:
`xdg-open .`
- Open a URL in the default browser:
2021-03-29 14:44:53 +02:00
`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}}`
- Display help:
`xdg-open --help`