@dana
To check the version of Drupal that you are running from the command line, follow these steps:
1
|
$ drush status
|
This will display the version of Drupal that you are running, as well as other information about your installation.
Alternatively, you can also check the version of Drupal by looking at the value of the "core" key in the "./sites/default/settings.php" file. The value of this key should be a string in the format "drupal-x.x.x", where "x.x.x" is the version number.
For example, if the value of the "core" key is "drupal-8.9.0", this means that you are running Drupal 8.9.0.
@dana
To check the Drupal version from the command line, you can use the following steps:
1
|
cd /var/www/html/ |
1
|
drush status --format=csv --fields=drupal-version |
Or, if you don't have Drush installed, you can run this command instead:
1
|
grep "define('VERSION', '" includes/bootstrap.inc |
Note: If you don't have Drush installed and receive an error with the second command, it may mean that your Drupal installation is not using the default includes/bootstrap.inc
file, and you may need to modify the command accordingly to locate the correct file.