Monday, April 29, 2024
29
rated 0 times [  29] [ 0]  / answers: 1 / hits: 69364  / 3 Years ago, wed, october 13, 2021, 12:19:15

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

More From » command-line

 Answers
2

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?


[#30340] Friday, October 15, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
terose

Total Points: 185
Total Questions: 125
Total Answers: 131

Location: Venezuela
Member since Mon, Dec 13, 2021
2 Years ago
terose questions
;