linux - 如何从控制台 linux 运行文件关联的应用程序

标签 linux ubuntu console

在 Windows 上存在命令:

start myfile.mp3
start myfile.txt

在苹果机上:

open myfile.mp3
open myfile.txt

Ubuntu下有模拟命令吗?

最佳答案

xdg-open 如果您有与 freedesktop.org 兼容的环境。

关于linux - 如何从控制台 linux 运行文件关联的应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9816758/

相关文章:

linux - 我想使用命令打印上个月最后一个日期,时间戳为 '23:59:59'

php - 在 Ubuntu 16.04 Xenial 和 apache 上安装 php 5.3 或 5.4

java - System.out 和 .err - 回到 future ?

windows - 在 Windows 10 上编译 SASS 时 Gulp 输出乱码错误

c++ - 使用管道在同一进程上执行多个 shell 命令时读取死锁

c++ - N 个 child 向 parent 发送消息

c# - 如何在 Ubuntu 14.04.3 LTS 上安装/配置 mod_mono?

c# - 如何向 Console.ReadLine() 添加超时?

linux - 使用 linux 命令行识别文件中具有 2 个字段的重复行

Python:访问存储在远程计算机上的文件