drush drupal-directory

Return the filesystem path for modules/themes and other key folders.

Drush Command

drush drupal-directory


target : A module/theme name, or special names like root, files, private, or an alias : path alias string such as @alias:%files. Defaults to root.


drush dd


--component : The portion of the evaluated path to return.  Defaults to 'path'; 'name' returns the site alias of the target.
--local-only : Reject any target that specifies a remote site.


Navigate into the devel module directory

cd </span>drush dd devel<span class="sb">
Navigate to the root of your Drupal site
cd </span>drush dd<span class="sb"> 
Navigate to the files directory.
cd </span>drush dd files<span class="sb">
Print the path to the files directory on the site @alias.
drush dd @alias:%files
Open devel module in your editor (customize 'edit' for your editor)
edit </span>drush dd devel<span class="sb">/devel.module