How to find the WordPress version from command line

Is there ant way to check the WordPress version from the command-line?

Checking version is an important measure for a CMS website owner. WordPress is one of the commonly using CMS (Content Management System) nowadays. From the WP dash board we can easily check the current version installed. You can check this from “Updates” section under dashboard.

wpversion

It’s very simple and easy to find the WordPress version from command line. Run the following command from the public_html (or the directory where you installed the WP) of your domain:

# grep wp_version wp-includes/version.php

Please see the sample output below:

root@vps [/home/user1/public_html]# grep wp_version wp-includes/version.php
* @global string $wp_version
$wp_version = '3.8';

That’s it.. 🙂

Related

1, How to reset WordPress admin password from cPanel
2, Top 10 WordPress themes for web hosting companies
3, 10+ WordPress Web-hosting themes and templates – Demo and download

Post navigation

Arunlal Ashok

Cloud Infrastructure / DevOps Engineer. I'm dealing Linux servers since 2012. I started this blog to share and discuss my ideas.

Always happy for an open discussion! Write to arun (@) crybit (dot) com. Check about me for more details. About this blog and our strong members, check The team CryBit.com

3 thoughts on “How to find the WordPress version from command line

Leave a Reply

Your email address will not be published. Required fields are marked *