Upgrade WordPress in Command Line with 3 simple steps

One of the best way to upgrade your WordPress version in command line with only 3 simple steps.

  1. Download the compressed file from https://wordpress.org/download/ and unzip it.

cd /var/www/html

wget https://wordpress.org/latest.tar.gz
tar -xzvf latest.tar.gz

  1. Copy and overwrite the core files

cp -avr /tmp/wordpress/* .

rm -rf wordpress latest.tar.gz

  1. Open and login your WordPress site to upgrade the core.

https://yourwordpress.com/wp-admin/upgrade.php

Useful Public DNS Server

Google

8.8.8.8
8.8.4.4

OpenDNS

208.67.222.222

China – Clean, No unwanted Ads

114.114.114.114
114.114.115.115

China – Protection from Trojans, For Banks, Privacy

114.114.114.119
114.114.115.119

China – School, Children, Kids, No Sex Sites

114.114.114.110
114.114.115.110

China Telecom in GuangDong

202.96.128.86