drush dl 时，它将将Drupal下载到子目录IE： Drupal-7.16
When you use
drush dl normally, it will download drupal into a subdirectory ie: drupal-7.16
I would like to skip creating the subdirectory and just install the drupal root directory files into the pwd or destination directory. ie: /var/www/install.php
Can this be done with drush commands?
Other shell workarounds also welcome and will be considered for answer status if this is impossible with drush.
drush dl drupal --destination=/var --drupal-project-rename=www
Drush usually creates a sub directory, But you can easily copy all the files from this sub directory "/var/www/drupal-7.12" to its upper folder "/var/www/" with this code
mv * .* ..
You can specify the name of the destination folder to download Drupal into via the --destination parameter. For example:
$ cd /var $ drush dl drupal --destination=www
Aside: Note that it's probably better to put your site in /var/www/mysite.org rather than directly in /var/www; someday, you might want to put a second site on the same server.