Open the current directory (or '/etc/') in the default file explorer in #Linux using the CLI
xdg-open .
xdg-open /etc/

Open a URL in the default browser:
xdg-open 'nixcraft.com

Open an image in the default image viewer:
xdg-open ~/Download/foo.png

Open a PDF in the default PDF viewer:
xdg-open /tmp/bar.pdf

Open a MP3 in the default MUSIC player:
xdg-open /tmp/bar.pdf

Follow

@nixCraft exactly like MacOS, except you only need “open” and you can specify the app if not default…

Sign in to participate in the conversation
CleverLibre Social

CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.