How to find the WordPress version from the command line
You can find the installed WordPress version on the admin dashboard’s front page, but you might not have admin access. In that case run this command:
grep wp_version /var/www/html/wp-includes/version.php |grep -v "*"
- Assuming WordPress lives in /var/www/html