1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 17:42:07 +02:00
tldr/pages/linux/xdg-open.md
git-em 8628cba2eb
linux/*: replace man.archlinux.com link (#7861)
* linux/*: replace man.archlinux.com

Does not replace links of pages directly associated with archlinux (eg: pacman)

* nmcli-device, nmcli-connection: use author's link
2022-03-09 14:31:08 +10:00

24 lines
474 B
Markdown

# xdg-open
> Opens a file or URL in the user's preferred application.
> More information: <https://portland.freedesktop.org/doc/xdg-open.html>.
- 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}}`
- Display help:
`xdg-open --help`