Thursday, 17 September 2015

How to scp EC2

Machine to EC2
scp -i myAmazonKey.pem FILE ubuntu@mec2-50-17-13-12.compute-1.amazonaws.com:~/.

EC2 to local
scp -i ec2key.pem username@ec2ip:/path/to/file .


TAR File

tar cvzf nameoffiletocreate.tar.gz locationthatyouwant

example - tar cvzf harish.tar.gz /ubuntu/harish/Desktop/

Unrar TAR File

tar -xvzf harish.tar.gz



No comments:

Post a Comment