Login to the directory where WordPress is installed  Like as below and grep it :

root@server [~]# cd /home/user/public_html
root@server [/home/user/public_html]# grep wp_version wp-includes/version.php
* @global string $wp_version
$wp_version = ’2.8.6′;