ylogx / dotfiles

Fully automated dev environment setup with dotfiles
https://shubham.chaudhary.xyz/dotfiles
10 stars 2 forks source link

Reuse status utility that Ubuntu uses #9

Closed ylogx closed 4 years ago

ylogx commented 7 years ago

Following message appears on logging into ubuntu in fresh tty:

Welcome to Ubuntu 14.04.5 LTS (GNU/Linux 3.13.0-74-generic x86_64)

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

  System information as of Tue Oct 24 15:04:12 IST 2017

  System load:                    0.0
  Usage of /home:                 68.5% of 98.30GB
  Memory usage:                   11%
  Swap usage:                     0%
  Processes:                      164
  Users logged in:                2
  IP address for eth0:            10.0.240.143
  IP address for docker0:         172.17.0.1
  IP address for docker_gwbridge: 172.18.0.1
  IP address for ov-001000-u46vc: 10.255.0.1

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

  Get cloud support with Ubuntu Advantage Cloud Guest:
    http://www.ubuntu.com/business/services/cloud

136 packages can be updated.
101 updates are security updates.

New release '16.04.3 LTS' available.
Run 'do-release-upgrade' to upgrade to it.

We can use this in home/.bash_functions:welcome_message

ylogx commented 4 years ago

This is called the message of the day /etc/update-motd.d/