alias with argument in bash shell

Instead of running “ssh -p 1234 -l shelluser”, you could do “myssh serverX”. To do that, you can put this into your .bash_profile as an alias:

sshas() { ssh -p 1234 -l shelluser “$1”; }

Comments (0)

› No comments yet.

Leave a Reply

Allowed Tags - You may use these HTML tags and attributes in your comment.

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Pingbacks (0)

› No pingbacks yet.