Files
tldr/pages/linux/xdg-open.md
Gonzalo Contreras Aso 4402fb0e6d xdg-open: add page (#5516)
2021-03-29 09:44:53 -03:00

25 lines
465 B
Markdown

# xdg-open
> Opens a file or URL in the user's preferred application.
> More information: <https://man.archlinux.org/man/xdg-open.1>.
- Open the current directory in the default file explorer:
`xdg-open .`
- Open an 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`