This useful news is printed when a user opens the TTY console on Ubuntu and logs in.
The news is from /var/cache/motd-news.
But if a user puts this command in their .bashrc, the news will appear.
cat /var/cache/motd-news |
The /var/run/motd.dynamic file contains the rest of the information printed to the TTY screen upon login.
Install this package.
4.4 Thu Sep 06 jason@Yog-Sothoth 0: $ sudo apt install landscape-common
Then run this command to print the system information that Ubuntu Server prints to the TTY console.
4.4 Thu Sep 06 jason@Yog-Sothoth 0: $ landscape-sysinfo System load: 0.29 Processes: 254 Usage of /: 86.4% of 228.18GB Users logged in: 1 Memory usage: 19% IP address for enp0s25: 192.168.1.2 Swap usage: 0% IP address for virbr0: 192.168.122.1 => / is using 86.4% of 228.18GB
This will be very helpful to a user that is wishing to replicate the Ubuntu Server environment on an Ubuntu Client system.
Add these two lines to the bottom of your .bashrc file.
cat /var/cache/motd-news landscape-sysinfo |
And this is the output that will be printed to your terminal when opening it.
* Read about Ubuntu updates for L1 Terminal Fault Vulnerabilities (L1TF). - https://ubu.one/L1TF * Check out 6 great IDEs now available on Ubuntu. There may even be something worthwhile there for those crazy EMACS fans ;) - https://bit.ly/6-cool-IDEs System load: 0.28 Processes: 254 Usage of /: 86.4% of 228.18GB Users logged in: 1 Memory usage: 19% IP address for enp0s25: 192.168.1.2 Swap usage: 0% IP address for virbr0: 192.168.122.1 => / is using 86.4% of 228.18GB 4.4 Thu Sep 06 jason@Yog-Sothoth 0: $
Very useful information for a Linux user.