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.


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:

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

That’s it.. 🙂


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

Arunlal Ashok

Linux Server Administrator. I'm dealing with Linux servers since 2012. I started this blog to share and discuss my ideas with the world. Check My Profile!! in uPwork (oDesk) and let me know if you need any assistance. Thanks!!

You may also like...

3 Responses

  1. Bharathi.B says:

    Thanks For Your valuable posting, it was very informative.

  2. R41 says:

    Thanks man.
    Its a great help.

Leave a Reply

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