Skip to content

Instantly share code, notes, and snippets.

@mrtonyhuynh
Last active August 29, 2015 14:20
Show Gist options
  • Save mrtonyhuynh/0bf9e42959cf95b5ce30 to your computer and use it in GitHub Desktop.
Save mrtonyhuynh/0bf9e42959cf95b5ce30 to your computer and use it in GitHub Desktop.
Linux

CREATE RANDOM HASH

openssl rand -base64 32
date | md5sum

DOWNLOAD FILE

wget http://wordpress.org/latest.tar.gz

UNZIP TAR.GZ

tar xzvf latest.tar.gz

ZIP TAR.GZ

tar zcvf latest.tar.gz directory_to_compress

BEST WAY TO COPY FILE

sudo rsync -avP ~/wordpress/ /var/www/html/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment