从命令行,如何知道在Windows / linux中安装了哪个Firefox版本? [英] From command line, how to know which Firefox version is installed in windows/linux?

查看:1123
本文介绍了从命令行,如何知道在Windows / linux中安装了哪个Firefox版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要知道在Windows
或Linux的命令行中安装了哪个Firefox版本。

I need to know which Firefox version is installed on my system from command line of Windows or Linux.

推荐答案

p>根据此链接,似乎 -v 参数(和更多)在Windows上被打破。如果你按照网站上的错误链接,似乎有一个解决方法。我引用注释:

According to this link, it seems that the -v argument (and more) is broken on Windows. If you follow the bug link on the site, it seems there is a workaround. I quote the comment:


解决方法(适用于Firefox,
Thunderbird和其他
程序太):

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

<program-name> -h | more

错误发生是因为没有
重定向,程序会释放
stdout,然后再处理-help
参数。通过重定向,stdout是
未发布,您可以看到
输出。

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.

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

它至少为我工作。无 |更多我没有打印。在Linux上,它可以使用或不使用管道。

It works for me at least. Without | more I get nothing printed. On Linux it works with or without the piping.

这篇关于从命令行,如何知道在Windows / linux中安装了哪个Firefox版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆