xdg-open
Opens a file or URL in the user's preferred application. More information: <https://portland.freedesktop.org/doc/xdg-open.html>.
Install
- All systems
-
curl cmd.cat/xdg-open.sh
- Debian
-
apt-get install xdg-utils - Ubuntu
-
apt-get install xdg-utils -
Alpine
-
apk add xdg-utils - Arch Linux
-
pacman -S xdg-utils - Kali Linux
-
apt-get install xdg-utils - CentOS
-
yum install xdg-utils - Fedora
-
dnf install xdg-utils - Windows (WSL2)
-
sudo apt-get updatesudo apt-get install xdg-utils - Raspbian
-
apt-get install xdg-utils - Docker
-
docker run cmd.cat/xdg-open xdg-openpowered by Commando
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
© tl;dr; authors and contributors