Useful ubuntu commands

29 Sep

To download a full website in ubuntu. use below command.

wget –recursive –no-clobber –page-requisites –html-extension –convert-links –restrict-file-names=windows –no-parent http://www.example.com/

Scp command to copy local website to aws server.

First of all create zip for your website.
move to the directory when key.pen file exists.
then execute below command.
scp -i key.pem filename.ext ubuntu@[server ip address]:/home/ubuntu

in aws you can copy your files to /home/ubuntu folder only. after that you can move it anywhere through ssh login.

Leave a Reply

Your email address will not be published. Required fields are marked *

20 − eleven =