ฉันคิดว่าxdg-openเป็นคำสั่งที่คุณกำลังมองหา
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.
เช่น: xdg-open index.php 
สิ่งนี้จะเปิด index.php เป็น gedit (ถ้าคุณใช้ gnome)
หากคุณต้องการเปิด url ในเบราว์เซอร์
xdg-open http://google.com
นี่จะเป็นการเปิด google.com ในเบราว์เซอร์เริ่มต้นของคุณ
xdg-openเป็นสคริปต์เสื้อคลุม - มันจะใช้เครื่องมือสภาพแวดล้อมเดสก์ทอปของ ( gio open, gvfs-open, kde-open, gnome-open, dde-open, exo-openและโฮสต์ของเครื่องมืออื่น ๆ เช่น) มันถูกติดตั้งโดยค่าเริ่มต้นและมีแนวโน้มที่จะทำงานในเวอร์ชันอดีตปัจจุบันและอนาคต (ในทางกลับกันgvfs-openและgnome-openเลิกใช้แล้วและอาจไม่พร้อมใช้งานในรุ่นอนาคต)