UNIX Banner Command


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers UNIX Banner Command
# 1  
Old 02-21-2010
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
# 2  
Old 02-21-2010
it depends on which shell you are using. read the manpage of your shell to find out!
# 3  
Old 02-21-2010
I am using the Korn Shell.
# 4  
Old 02-21-2010
so... did you read the manpage? i have and was able to find this:

Code:
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

# 5  
Old 02-21-2010
See "man login". Some useful environment variables are set upon login.

Code:
banner "${LOGNAME}"


Last edited by methyl; 02-21-2010 at 06:13 PM.. Reason: grammar
# 6  
Old 02-23-2010
how about this ?
Code:
 
banner $USER ;
banner $USERNAME ;

# 7  
Old 02-23-2010
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.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Banner command equivalent in Linux

Hi guys can i get banner equivalent command in linux. I am using Linux xcclx0619.target.com 2.6.18-308.11.1.el5xen #1 SMP Fri Jun 15 16:19:17 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux (1 Reply)
Discussion started by: mohanalakshmi
1 Replies

2. UNIX for Dummies Questions & Answers

Need help with banner.

is there a way to reduce the size of the banner? banner -w ? TIA (8 Replies)
Discussion started by: budz26
8 Replies

3. Shell Programming and Scripting

Banner causes scp to fail from script but not command line.

Hi, We have an interesting issue which is similar to the one in this thread, but that never provided a full answer. - Ohh apparently I can't post URLs till I have 5 posts, sorry. We have a simple script that copies files from one shelf to the other. Both shelves have an ssh banner defined. ... (3 Replies)
Discussion started by: RECrerar
3 Replies

4. Shell Programming and Scripting

regarding banner command

Iam a MCA student having some doubts about 1) different disk related commands 2) Banner command 3) Different file related commands 4) set eb (where it is used) (1 Reply)
Discussion started by: gururajbhat
1 Replies

5. Shell Programming and Scripting

doubt in banner command !!!

hello, I am using banner command in my shell.I used :- The problem is that the output is printed in 3 separate lines.I want to display it in a single line.If the size is not enough then at least 2 words should come in the same line. Can you tell me what is the option in banner that would help... (4 Replies)
Discussion started by: nsharath
4 Replies

6. Shell Programming and Scripting

banner:command not found

hi, When i execute banner command the output is being displayed as banner:command not found When ever i give yum install banner the output is Loading "installonlyn" plugin Setting up Install Process Setting up repositories Parsing package install arguments Nothing to do what... (8 Replies)
Discussion started by: prakashreddy
8 Replies

7. UNIX for Dummies Questions & Answers

banner command

can I use Banner command in Linux, if not, what is the similar command in linux then... (7 Replies)
Discussion started by: vasikaran
7 Replies

8. Linux

banner command

is there a similiar function to the solaris banner function in linux? (1 Reply)
Discussion started by: BG_JrAdmin
1 Replies

9. UNIX for Dummies Questions & Answers

Banner

How can I display a message to the crt whenever someone logs on? They do not see a unix prompt. I need to easily update this also. (2 Replies)
Discussion started by: Beetlejuice
2 Replies

10. UNIX for Dummies Questions & Answers

Banner command

Hey all, I want to use the banner/echo command to write messages on different console windows. I knew that before, but I completely forget how to do it ! I just remenber that /dev/pts/# is the number of the window. and it's useful. It would be great if someone knows how to solve my... (4 Replies)
Discussion started by: maxwell17
4 Replies
Login or Register to Ask a Question