Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

When you login to either a tty or a remote machine by ssh there's normally a banner which looks like this:

Welcome to Ubuntu 12.04 LTS (GNU/Linux 3.2.0-25-generic x86_64)

 * Documentation:  https://help.ubuntu.com/

0 packages can be updated.
0 updates are security updates.

where is the script/group of scripts that produce this message located? I'd like to customise it.

I assume that it's part of the login process and not bash since you don't see it every time a terminal is opened.

share|improve this question

1 Answer 1

up vote 3 down vote accepted

Have a look at manpage update-motd(5) and the scripts in /etc/update-motd.d. The text was originally called "Message Of The Day" and stored in /etc/motd (now a symlink to /run/motd). That file is still there and updated as needed by background processes (likely anacron and update-notifier).

This can be suppressed by the presence of a ~/.hushlogin file on a per-user basis.

share|improve this answer

Your Answer

 
discard

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.