5

how can i display a message when open terminal.

i want to display a Specified text right after open terminal any time.

hence before do anything,i want that text will shown.

i want to understand what file or files should change...

thank you

smse
  • 81
  • Not a duplicate, if you look for adding a message to starting a terminal this is the first hit you would never find those other questions with a regular google search +1 for the question – Mister Verleg Oct 30 '16 at 20:26

1 Answers1

10

You can add it to your ~/.bashrc. That file is read each time a new interactive shell is launched so it will be displayed each time you launch a terminal, or log in to the console or simply run bash. For example, you could add these lines:

echo "Hi, how are 'ya?"
terdon
  • 100,812