Drupal experts love the command line. The only thing better than Unix commands are Drupal command line macros, a.k.a. Drush.
Drush is a library of command line scripts that automate an array of Drupal administrative functions. Even if you are not a command line junkie, you might find helpful the elegance of administration via Drush.
This tutorial is a two-fer. You will learn how to install Drupal 7 using SSH and get a taste of Drush by seeing it in action. The first step is to install Drush. Then we use it to install Drupal...all using the command line. Look ma, no GUI!
If you are familiar with the command line, but not Drush, this tutorial is ideal for you. Even if you are not a Unix command expert, it is still good to know what Drush can do.All Getting Started with Drupal 7 Tutorials
Commands used in this videoCreating the database:
mysqladmin –u [db_user] –p create [db_name]Download drush:
wget http://ftp.drupal.org/files/projects/drush-All-Versions-HEAD.tar.gzExtract archive:
tar xzvf drush-All-Versions-HEAD.tar.gzVerify Drush is working:
cd drush drushSet alias:
alias drush='/[path_to_drush_from_root]/drush/drush'Change directories to web files:
cd ../wwwDownload Drupal:
drush dl drupal-7.0Move Drupal files to web directory:
mv drupal-7.0/* . mv drupal-7.0/.htaccess . rm –r drupal-7.0Execute Drupal install:
drush site-install standard --account-name=admin --account-pass=[useruser_pass] --db-url=mysql://[db_user]:[db_pass]@localhost/[db_name]View all Getting Started with Drupal 7 tutorial videos
What are some cool things you do with Drush? Leave comments on your cool Drush tricks.photo credit