Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Using Ubuntu 10.10 .In GUI mode when I open up a terminal, a message is displayed at top left above the prompt: Ghost@work-Ubuntu:~$ , I would like to change it, so I would like to know in which file the message is saved in order to access it or maybe commands to remove the message.

Edit: When I open a terminal in gui.need to remove the message on top

You seem confused
share|improve this question
I cannot understand what message are you taking about. Can you report the content of the message or show a screenshot? – enzotib Sep 1 '11 at 6:26
I have copied the display @enzotib – GhostRider Sep 1 '11 at 7:08
up vote 5 down vote accepted

The static-text part displayed before prompt is found in /etc/motd. Motd stands for Message Of The Day (see man motd).

Other than this, your startup (profile) file can execute something like the fortune program (which seems to be your case). To get rid of or modify it, if you use bash, edit the .bashrc or .bash_profile and find where fortune is executed. See man fortune for details.

It can also be that the text is just constructed directly in .bashrc, .bash_profile or somewhere like that.

share|improve this answer
have a look @edit, motd is not the place as i found . – GhostRider Sep 1 '11 at 7:09
Ah, right :) It is a fortune then... (updated) – rozcietrzewiacz Sep 1 '11 at 7:10
Thanx alot it worked....bashrc – GhostRider Sep 1 '11 at 7:36

What you saw is call a fortune cookies (do a man fortune for more information.) To remove the fortune, you need to go into Gnome Desktop (yes, not very intuitive.)

  1. Click the Menu button and look for "Desktop Settings", launch that app
  2. Select the Terminal from the left column
  3. Uncheck the show fortune cookies checkbox
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.