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.


Useful Public DNS Server



China – Clean, No unwanted Ads

China – Protection from Trojans, For Banks, Privacy

China – School, Children, Kids, No Sex Sites

China Telecom in GuangDong