When you connect to your linux box via ssh you’re normally presented with some information about the instance like so:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Welcome to Ubuntu 20.04.3 LTS (GNU/Linux 5.4.0-91-generic x86_64)

* Documentation:  https://help.ubuntu.com
* Management:     https://landscape.canonical.com
* Support:        https://ubuntu.com/advantage

System information as of Tue 25 Jan 2022 01:39:34 PM UTC

System load:                      0.0
Usage of /:                       47.3% of 24.05GB
Memory usage:                     38%
Swap usage:                       51%
Processes:                        165
Users logged in:                  0
IPv4 address for br-44fea70a5606: 172.28.0.1
IPv4 address for docker0:         172.17.0.1
IPv4 address for eth0:            10.666.12.34
IPv4 address for eth0:            192.168.1.123
IPv6 address for eth0:            1200:1a05::f0f0:f0f0:f0f0:f0f0

=> There is 1 zombie process.


22 updates can be applied immediately.
To see these additional updates run: apt list --upgradable


*** System restart required ***
You have mail.
Last login: Tue Jan 25 13:26:30 2022 from 127.0.1.1

This information is located in /var/run/motd.dynamic so we can add an alias in our profile to get quickly check the information at boot-time:

1
alias login-message="cat /var/run/motd.dynamic"