drupal-directory

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

drush drupal-directory

Aliases:

Arguments:

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.

Options:

--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.

Examples:

Navigate into the devel module directory

cd `drush dd devel`

Navigate to the root of your Drupal site

cd `drush dd`

Navigate to the files directory.

cd `drush dd files`

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 `drush dd devel`/devel.module