Ubuntu – How to remove/change the message displayed when opening a terminal

linuxterminalUbuntu

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
Ghost@work-Ubuntu:~$

Best Answer

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.

Related Question