UNIX Banner Command

Hi,

I am logging in into an UNIX environment with my user id and password.
I want to display my name there , each time I login into the environment,
for which I can use the banner command.

Which file should I add the banner command to , so that I will get the desired result?

Regards,
Kishore

it depends on which shell you are using. read the manpage of your shell to find out!

I am using the Korn Shell.

so... did you read the manpage? i have and was able to find this:

FILES
       /etc/profile  The  system  wide initialization file, executed for login
       shells.
       $HOME/.profile
              The personal initialization  file,  executed  for  login  shells
              after /etc/profile.
       $HOME/..kshrc
              Default  personal  initialization file, executed for interactive
              shells when ENV is not set.
       /etc/suid_profile
              Alternative initialization file, executed when instead  of  per-
              sonal  initialization  file  when the real and effective user or
              group id do not match.
       /dev/null
              NULL device

See "man login". Some useful environment variables are set upon login.

banner "${LOGNAME}"

how about this ?

 
banner $USER ;
banner $USERNAME ; 

i hope it can...

for k-shell
you can use

banner "${LOGNAME}"

if not

then you have to add it in /.profile
$HOME/.profile
The personal initialization file, executed for login shells
after /etc/profile

FYI... In bash shell banner command is not applied.

You can add the following command in your .bash_profile as well as in .bashrc files.

banner $LOGNAME

I asked you to specify this in .bash_profile file which will be executed whenever we use ssh command.