Help Creating Command line shortcut!

Discussion in 'macOS' started by millwalll, Jan 18, 2011.

  1. millwalll macrumors newbie

    Nov 15, 2010
    Hi all,

    Need some help I always need to connect to a server using ssh and typing it is a pain. Is there a way to create a shorthand version so all I need to do is type Jim and it will run the full ssh -l blar blar blar I have tried to find this out but got confused as seen so many ways to do it. I am using mac os x 10.6.5

    Thanks in advance, Sorry if this is really newbie question :p
  2. LPZ macrumors 65816

    Jul 11, 2006
    I would add the following line to the hidden file named .bashrc in your home folder:

    alias Jim="ssh -l blar blar blar"

    (You may need to first create this file.)
  3. millwalll thread starter macrumors newbie

    Nov 15, 2010

Share This Page