SmartSolution
SmartSolution

Reputation: 2338

From command line, how to know which Firefox version is installed in windows/linux?

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

Upvotes: 30

Views: 80756

Answers (8)

AlexD
AlexD

Reputation: 581

Thank you Mozilla for keeping us on our toes... in a pandemic world that's what we would need... Anyway.. 2021 only works in Windows 10 with the pipe:

c:\Program Files\Mozilla Firefox\Firefox -v | more

Upvotes: 0

ganesh
ganesh

Reputation: 31

In RH7 try "Firefox -v" this works for me

Upvotes: 0

undetected Selenium
undetected Selenium

Reputation: 193078

On my Windows 8 box I was aware that Firefox Quantum was installed and the firefox binary is placed within:

C:\Program Files\Mozilla Firefox

So when I changed the directory to C:\Program Files\Mozilla Firefox and issued the command firefox -v nothing was shown:

firefox-v

But when I issued the command firefox -v|more it worked perfecto:

firefox-v_more

Upvotes: 4

scrat.squirrel
scrat.squirrel

Reputation: 3826

In 2018, FF 60:

firefox --version

output:

Mozilla Firefox 60.0.1

Upvotes: 2

zvi
zvi

Reputation: 4696

7 years later...

On newer version (I tried on 51.0.1) @Nömmik's answer doesn't work on Windows.

But you can try this workaround:

firefox -v | find "Mozilla"

Upvotes: 1

Arpan C
Arpan C

Reputation: 13

If this does not work , try using ./firefox -v

Upvotes: 0

Nömmik
Nömmik

Reputation: 514

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:

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.

So for example for Firefox:

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

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

Upvotes: 24

Nanne
Nanne

Reputation: 64399

On linux (debian, lenny), you can use -v:

firefox -v
Mozilla Firefox 3.0.19, Copyright (c) 1998 - 2010 mozilla.org

(that was on a random server just now)

Upvotes: 17

Related Questions