Hi Linux gurus,
I am trying to set an alias to an ip address so that i dont' have to type the damn ip address everytime i want to ftp to it, but im having trouble in it. this is wut i do
$ set alias foo='123.45.678.90'
and then i do
$ telnet foo
it does different things. sometimes it would tell me that foo is not a hostname, other times it would try to connect to some other ip, and then othertimes it would login into my machine and ask me for the password and even though thats not where i wanna go, if i enter my password, it reports "bad password"
then i tried
$ set alias foo='telnet 123.45.678.90'
i get the error
bash: foo:command not found
any help guys??
thanks
I am trying to set an alias to an ip address so that i dont' have to type the damn ip address everytime i want to ftp to it, but im having trouble in it. this is wut i do
$ set alias foo='123.45.678.90'
and then i do
$ telnet foo
it does different things. sometimes it would tell me that foo is not a hostname, other times it would try to connect to some other ip, and then othertimes it would login into my machine and ask me for the password and even though thats not where i wanna go, if i enter my password, it reports "bad password"
then i tried
$ set alias foo='telnet 123.45.678.90'
i get the error
bash: foo:command not found
any help guys??
thanks
Comment