Let alias make better life on Mac or Linux system

CD ~

vi .bash_profile

 

add alias in the file

alias ctaws=’ssh -i /Users/Alvis/.ssh/awsvuewebsite.pem ec2-user@ec2-52-194-128-68.ap-northeast-1.compute.amazonaws.com’

alias abc=”ssh  root@123.42.21.123″

(abc as the alias , can be used to instead of command line )

:wq!

 

source ~/.bash_profile        //* reload to update the setting of .bash_profile

 

 

 

Leave a Reply

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

<!-- script async src="//static.zotabox.com/1/b/1b6500888d666f406d12be052e88caec/widgets.js" /script -->