Re: newbie question: alias for a login name



boris.smirnov@xxxxxxxxx writes:

yes it's a text prompt. But I didn't mean only by logging into the
system, I meant also for ex. when using in a shell, for ex. cd /home/
alias...


You can create an alias that logs you onto a system.
For instance, I use the machine name as the name of my script, i.e.

MyServer contains

---cut here---
#!/bin/sh
ssh -l gh93ldsk myserver.com

---cut here---

so I just type in "MyServer" and then I log in.
But that's on the CLIENT.

There are ways to automate the login - depending on the login process (ssh, telnet, rlogin, etc.)

Once you have logged in, you can create many many aliases and scripts
to make your life easier on the SERVER. Note that we are talking
about aliases and scripts on two different systems.

You said
cd /home/

I don't know what exactly you are doing. I also don't know what shell you are using.

By convention, the command
cd
with no arguments places you in your $HOME directory.
Is $HOME the same as /home/?



--
Sending unsolicited commercial e-mail to this account incurs a fee of
$500 per message, and acknowledges the legality of this contract.
.



Relevant Pages

  • Re: [Long] about ksh93 (Was: Bourne Shell Programming on Windows)
    ... Are you saying that David Korn is an unitiated or ignorant ksh ... > You provided one obscure example that does not occur in scripts. ... > in every shell. ... that should be teached in every shell programming book. ...
    (comp.unix.shell)
  • Re: Add user in Unix from command Line
    ... what shell the script should be interpreted with. ... Do you have any concept how many linux scripts that are part of the ... of relying on bash extensions are negligible. ... Those scripts at least in the sco case were probably a conscious design ...
    (comp.unix.sco.misc)
  • Re: [Long] about ksh93 (Was: Bourne Shell Programming on Windows)
    ... Note that in src/cmd/ksh93/OBSOLETE in ksh93 source ... > But this is a shell feature, not a shell programming feature. ... Look at David Korn's himself ksh scripts on its home ...
    (comp.unix.shell)
  • Re: Secure issues on the usage of exec
    ... > the shell may actually be a posix shell. ... first you have to get a setuid ksh script running. ... Linux doesn't support setuid scripts. ...
    (comp.unix.shell)
  • Re: Javascript on steroids!
    ... a reliable means to match their logs against our logs ... potential malicious script insertions. ... employing third party scripts is qualified to identify ... But your system could be nothing but a scam. ...
    (comp.lang.javascript)