Update Drupal core in command line via ssh

I used ssh to update drupal 6.14 to drupal 6.15 this morning. Here is what I did.

1. Remote login to the web server

ssh root@mysite.com

2. Download Drupal 6.15

cd /var/www
wget http://drupal.org/files/projects/drupal-6.15.tar.gz
tar -zxvpf drupal-6.15.tar.gz

3. Copy the new files to my web directory (www)

cd /var/www/drupal-6.15
cp * /var/www
cp -r * /var/www

4. run update.php
http://mysite.com/update.php