From where does motd data comes?

Hi,

I am using Ubuntu 10.04 desktop and whenever I login to the xterm terminal through ssh, I am getting the following motd (message of the day) info.

Linux desktop 2.6.32-28-generic #55-Ubuntu SMP Mon Jan 10 21:21:01 UTC 2011 i686 GNU/Linux
Ubuntu 10.04.2 LTS

Welcome to Ubuntu!
 * Documentation:  https://help.ubuntu.com/

  System information as of Thu Mar  3 20:34:39 IST 2011

  System load:  0.08               Processes:           207
  Usage of /:   4.7% of 921.40GB   Users logged in:     1
  Memory usage: 52%                IP address for eth0: 10.225.73.147
  Swap usage:   0%

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

I know that these details are stored in /etc/motd and /var/run/motd, but even if I delete these files, the above said message is displayed during the next successful login.

I would like to know how this motd is getting populated with this info and which command is used for that. Please advise me.

Thanks

Edit the files in /etc/update-motd.d.

1 Like