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 I login to my ubuntu system, it show me this this message, How can I see it any time? I tried to run . .bashrc but it didn't worked.

Welcome to Ubuntu 12.10 LTS (GNU/Linux 3.2.0-24-virtual x86_64)

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

  System information as of Sat Jul 13 06:16:35 UTC 2013

  System load:  0.55              Processes:           96
  Usage of /:   8.1% of 68.74GB   Users logged in:     0
  Memory usage: 55%               IP address for eth0: 198.xx.xxx.xxx
  Swap usage:   0%                IP address for eth1: xxx.1x0.xx.xxx

  => There is 1 zombie process.

  Graph this data and manage this system at https://landscape.canonical.com/

223 packages can be updated.
134 updates are security updates.

Last login: Mon Jul  8 17:47:05 2013 
share|improve this question
add comment

2 Answers

up vote 4 down vote accepted

You can show anytime when you wish this message - message of the day - using next command in terminal:

cat /etc/motd

or, better:

for i in /etc/update-motd.d/*; do if [ "$i" != "/etc/update-motd.d/98-fsck-at-reboot" ]; then $i; fi; done

If you want to see this message everytime when you open a terminal, just insert one of the above lines at the end of ~/.bashrc file (you can open it with gedit ~/.bashrc command).

The /etc/motd is a file on Unix-like systems that contains a "message of the day", used to send a common message to all users, in a more efficient manner than sending them all an e-mail message.

More about: http://en.wikipedia.org/wiki/Motd_(Unix)

Related: How is /etc/motd updated?

share|improve this answer
add comment

I suppose this is managed by PAM, via /etc/pam.d/login, look for motd (message of the day).

You can produce the static part of that message with cat /etc/motd. I do not have the dynamic part that you show, so I cannot help with that.

share|improve this answer
add comment

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.