how do i find where is drush installed? its currently on drush 6 and looking to update it to drush 7 for drupal 8. Whats an easy way to find where its installed and update it?
which drush to get the installation path of Drush on CentOS:
cat which drush | grep SCRIPT_PATH -m1
which drush will return the path to the drush shell script, which is a readable text file. The SCRIPT_PATH variable in this shell script contains a path to the drush.php file. In the directory, other than this file rest are the files of drush library.
cat `which drush` | grep SCRIPT_PATH -m1 SCRIPT_PATH=/usr/share/pear/drush/drush.php