Getting PLCnext Firmware version from command line

How can I get the PLCnext firmware version without using the PCWE environment ? For example, after a connection is made using PuTTY, what could be a valid command line to get it ? A simple grep command will be fine. Thanks.

Hi, just try to read the file /etc/plcnext/arpversion it should give you an output like this one:

Arpversion: 1.2.0.0 alpha  
> Svn Revision: 10551  
> Build Job: "local"