DEV Community

Cover image for how to create shell recursive command alias.
Apurba Mondal
Apurba Mondal

Posted on

how to create shell recursive command alias.

  1. mapurba@$ cloud="ssh -i /home/mapurba/.ssh/gcpinstance mapurba@prod" *prod = ip...can be path after that

mapurba@$ $cloud

you should be able to ssh to the system

now alias this variable to any name to have easy linux shell quick commands

this is alias command

mapurba@$ alais cloud=$cloud

mapurba@$ cloud

....loggin

or use this alias cloud="ssh -i /home/mapurba/.ssh/gcpinstance mapurba@prod"

Top comments (0)