Breaking

Followers

Sunday, 28 May 2017

Connect with AWS server and few basic commands In ubuntu

Open your terminal

  1. ssh -i your-pem-file-name.pem Server name
Eg:- ssh -i h4h.pem ubuntu@partners.holidaysforhumanity.com
————————————————————————————————————
Make Zip folder
zip -r compressed_filename.zip foldername
Unzip file
unzip filename.zip
Add folder
Mkdir folder name
Remove file
rm file-name
Rename file
mv payment.module payment.modulebkkkk
Remove folder
sudo rm -r folderName
Copy file local to remote server
scp -r -i your-pem-file-name.pem file-path  servername:/tmp

EG:-
scp -r -i h4h.pem sites/all/themes/h4h/theme/system/user-profile.tpl.php  ubuntu@partners.holidaysforhumanity.com:/tmp

No comments:

Post a Comment