Myślę, że xdg-opento polecenie, którego szukasz.
NAME
xdg-open - opens a file or URL in the user's preferred application
SYNOPSIS
xdg-open {file | URL}
xdg-open {--help | --manual | --version}
DESCRIPTION
xdg-open opens a file or URL in the user's preferred application. If a
URL is provided the URL will be opened in the user's preferred web
browser. If a file is provided the file will be opened in the preferred
application for files of that type. xdg-open supports file, ftp, http
and https URLs.
na przykład: xdg-open index.php
Otworzy to index.php w gedit (jeśli używasz gnome).
Jeśli chcesz otworzyć adres URL w przeglądarce
xdg-open http://google.com
spowoduje to otwarcie google.com w domyślnej przeglądarce.
xdg-openJest to skrypt otoki - będzie wykorzystywać narzędzia środowiska graficznego użytkownika ( gio open, gvfs-open, kde-open, gnome-open, dde-open, exo-open, i wiele innych takich narzędzi). Jest również instalowane domyślnie, a bardzo prawdopodobne, aby pracować na przeszłości, obecnych i przyszłych wersjach (z drugiej strony, gvfs-openi gnome-openbyły przestarzałe, i może być niedostępna w przyszłych wersjach).