firefox - 从命令行,如何知道 windows/linux 中安装了哪个 Firefox 版本?

标签 firefox command-line

我需要从 Windows 的命令行知道我的系统上安装了哪个 Firefox 版本
或Linux。

最佳答案

根据 this link ,看来-v论点(以及更多)在 Windows 上被破坏了。如果您点击网站上的错误链接,似乎有一种解决方法。我引用评论:

Workaround (works with Firefox, Thunderbird, and, I suppose, other programs too):

<program-name> -h | more

The bug happens because, without redirection, the program releases its stdout before handling the -help parameter. With redirection, stdout is not released and you can see the output.



例如对于 Firefox:
C:\Program Files (x86)\Mozilla Firefox>firefox -v | more
Mozilla Firefox 3.6.13, Copyright (c) 1998 - 2010 mozilla.org

至少对我有用。无 | more我什么也没打印。在 Linux 上,无论有没有管道,它都可以工作。

关于firefox - 从命令行,如何知道 windows/linux 中安装了哪个 Firefox 版本?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4644470/

相关文章:

laravel - Firefox 无法连接到本地服务器子域

firefox - 如何打包未签名的 Firefox WebExtension?

css - 图片在 Firefox 上没有响应

java - 错误 : Could not find or load main class

windows - 通过命令行在 Windows 中使用和运行 Tortoise svnsync

linux - 以下哪个是我的 CPU 温度

jquery - 我们如何在 mht 文件中使用 JQuery?

Firefox 插件 sdk 卸载钩子(Hook)

从 C 程序调用命令行

multithreading - 如何快速杀死运行特定脚本的所有线程?