Linux – How to find the browser versions from command-line in Linux & Windows

command-line-interfacelinuxwindows

In ubuntu when I just open a terminal and say
"firefox -v" or "konqurer -v"
it prints all the version information.

But, I am not able to find how to go about this for

  1. Chromium on Linux & Windows (7) [Couldn't get to work with this link and this link
  2. Firefox on Windows (7)
  3. IE on Windows (7)

Previously on Windows xp executing "someexe.exe /?" used to show help and command line options for that exe. But it doesn't seem to be working for Windows 7. I tried "Chrome.exe /?" and it just starts chrome.

I know how to get it in GUI, but I would like to script it. How can I do this?

Best Answer

I know this is a old question but it might help someone. (Donnow about Windows haven't used it in a long time ;)

Chromium and Google Chrome for Linux both have a command line flag to output the version. You can find them like:

google-chrome --product-version

and

chromium-browser --product-version

Many other interesting command line flags here: http://peter.sh/experiments/chromium-command-line-switches/

Hope it helps. :-)