存在于Windows的命令:如何运行从终端的Linux文件关联的应用程序
start myfile.mp3
start myfile.txt
在Mac上:
open myfile.mp3
open myfile.txt
是否有在Ubuntu下的模拟命令?
存在于Windows的命令:如何运行从终端的Linux文件关联的应用程序
start myfile.mp3
start myfile.txt
在Mac上:
open myfile.mp3
open myfile.txt
是否有在Ubuntu下的模拟命令?
xdg-open
如果您有一个freedesktop.org兼容的环境。
Linux中有几个命令可以帮助您打开与应用程序相关的文件。如果你知道打开文件的应用程序,那么这可能工作。我不知道你是否在寻找这个
env DISPLAY =:0.0 firefox“google.com” 打开Firefox并打开google.com打开它。您可以替换应用程序名称和文件名并使用此命令。
尝试“gnome-open”,为Gnome供电的发行版。
gnome-open random-file.torrent将打开我的torrent应用程序。