How to display message when starting a terminal


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting How to display message when starting a terminal
# 8  
Old 05-26-2009
you should change the name to .profile

mv welcome.profile .profile
# 9  
Old 05-26-2009
Thanks Amit. I changed the profile name to .profile as u said. Now I have /home/.profile

But I logged in again and opened the terminal but it doesnt display the msg i have in .profile. What must b the prob?
# 10  
Old 05-26-2009
Hi,

Put the welcome message in this file /etc/motd.

Thanks,
Alberto
# 11  
Old 05-26-2009
Quote:
Originally Posted by mrudula009
Thanks Amit. I changed the profile name to .profile as u said. Now I have /home/.profile

But I logged in again and opened the terminal but it doesnt display the msg i have in .profile. What must b the prob?
ok do the following steps
1)login
2)vi .profile
3)shift G then press o
4)type banner "message"
5)save :wq
6)exit or ctrl+d
7)login again it should dispaly the message
# 12  
Old 05-26-2009
Thanks to all. Im still not getting the msg.

I use fedora - boots fedora - it asks for password when i click on my login account - after typing the password it comes to the desktop - then i open Applications -> System Tools -> Terminal.

I do not get a msg here when i open the terminal. To log in again, i exit from the terminal by pressing ctrl + d. I click on System->Log out user and then log in again to open the terminal.

This is what I do. To get the welcome msg shud i do something else?

I wanna get atleast this small thing done first .. only then i can proceed to the next level .. so pls help
# 13  
Old 05-27-2009
It will depend on the shell you are using. If you are using bash shell, it may be .bash_profile on your home directory. So include your banner msg in the .bash_profile.


- Devaraj Takhellambam
# 14  
Old 05-27-2009
Thanks for your response Dev.

First - how do i know which shell i am using?

I renamed the file .profile to .bash_profile. I logged in again but still its not displayed.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Colorful message is displayed in the terminal but not in the log file

Is there any way to print the colorful message in the terminal (which is the output of a simulation) to the log file with the same color. The colorful message at the terminal is obtained by the following codes: /////////////codes start here/////////////////////////////////////// ... (5 Replies)
Discussion started by: babunp114525
5 Replies

2. Ubuntu

Error starting terminal in Ubuntu 14.04.3

I am unfamiliar with below error and how to fix it, it happens when I start the terminal in Ubuntu 14.04.3. I do not send any command only press crtl+alt+T. It seems to indicate that something is missing from PATH but I’m not really sure what. Thank you :). Command 'lesspipe' is... (24 Replies)
Discussion started by: cmccabe
24 Replies

3. Windows & DOS: Issues & Discussions

Start X Server without starting a terminal

when I run C:\cygwin\bin\run C:\cygwin\bin\startxwin.exe it fires up a terminal by default. Can I eliminate that terminal and start the x server as a service silently and sits in my status bar just there? Thanks Jack (0 Replies)
Discussion started by: lucky7456969
0 Replies

4. Shell Programming and Scripting

When trying to open file Message:-Terminal too wide?

Hi, I am trying to open small size file only in vi editor on solaris or Linux machine but it giving message "Terminal too wide" and then I have to come out. As shown below:- -rwxr-x--- 1 rkycadm rkycprd 2445 Sep 12 04:06 $ vi file.txt Terminal too wide :q! ----------... (2 Replies)
Discussion started by: RahulJoshi
2 Replies

5. OS X (Apple)

How to prompt for login on OSX when starting Terminal

I was wondering if anyone can tell me how to log back in to unix after logging out. I have a MBPro. If I don't have the window close after exiting, then there is the phrase 'process completed' in brackets with a blinking cursor, but I can't type anything in. Is it also possible to start the... (4 Replies)
Discussion started by: Straitsfan
4 Replies

6. UNIX for Dummies Questions & Answers

Starting terminal with shortcut key combination

How can the shortcut keys be defined that would open up a terminal window? When using a kvm switch, the mouse sometimes does not work, but the keyboard does, and by opening up a terminal window using a shortcut key combination, the mouse can be restarted by entering the predefined mouserestart... (0 Replies)
Discussion started by: figaro
0 Replies

7. Shell Programming and Scripting

Write a message on specific user terminal

Hi All, Need urgent help!!! Can anyone tellme how can we send a message on specific user terminal and get a response from user in return. Thanks in advance. (3 Replies)
Discussion started by: Sadhana
3 Replies

8. Shell Programming and Scripting

date and time to display on the terminal

hi all, am trying to 'grep' some text from a log file and use the 'cut' command to read from that line i just grep'ed to extract date/time and response times. code sniplet i am using is : grep -i 'text to grep' Out.log | while read LINE; do ... (11 Replies)
Discussion started by: cesarNZ
11 Replies

9. Shell Programming and Scripting

sending message to terminal

hi all i have script #!/bin/bash cd /usr3/prod grep ERROR /usr3/prod/ind.log > /usr3/prod/ind_err.log if test -s /usr3/prod/ind_err.log then echo "error during process" else echo "process succeed" fi i want that this message(echo) will be display one time at the top of the screen... (5 Replies)
Discussion started by: naamas03
5 Replies

10. UNIX for Dummies Questions & Answers

terminal display

I want to display a system warning message at the prompt of every live terminal on a sun solaris 8 machine using CDE. I know this can be done on a console, but what about dtterm and xterm regular windows? Does anyone know how this is done? What about a single terminal? Clear skies,... (2 Replies)
Discussion started by: seismic_willy
2 Replies
Login or Register to Ask a Question