How to find Magento version
Run under the folder where Magento is installed
grep -A6 'static function getVersionInfo' app/Mage.php
Using bin/magento
php bin/magento --version… Read the rest
Notes
Run under the folder where Magento is installed
grep -A6 'static function getVersionInfo' app/Mage.php
Using bin/magento
php bin/magento --version… Read the rest
Run where Joomla is installed
grep "RELEASE" ./libraries/joomla/version.php ./libraries/cms/version/version.php ./includes/version.php ./libraries/src/Version.php --color… Read the rest
To check the latest WordPress version:
curl -s https://wordpress.org/download/ |grep -Po 'The latest stable.+?\)'
Run where WordPress is installed:
cat wp-includes/version.php |grep "\$wp_version "
Mass check:
for i in `find . -name version.php`; do cat $i |grep "wp_version =" |cut -d"'" -f2; done find .… Read the rest