How Do I Delete My MOTD Message
Everytime I log into my VPS via SSH,
I see this long message:
Welcome to Ubuntu 18.04.4 LTS (GNU/Linux 4.15.0-50-generic x86_64)
System information as of Fri Feb 7 21:44:47 IST 2020
System load: 0.01 Processes: 95
Usage of /: 12.5% of 24.06GB Users logged in: 0
Memory usage: 15% IP address for eth0:
Swap usage: 0%
Multipass 1.0 is out! Get Ubuntu VMs on demand on your Linux, Windows or
Mac. Supports cloud-init for fast, local, cloud devops simulation.
Canonical Livepatch is available for installation.
Reduce system reboots and improve kernel security. Activate at:
17 packages can be updated.
17 updates are security updates.
I would really like to delete it, or at least most of it,
and maybe selectively leave some small important part
(e.g. the "17 packages can be updated." line)
How do I do it?
There's two ways to go about it. You can either edit
/etc/motd with your text editor of choice, or use the Ubuntu-provided UpdateMotd script.
If you just want to make it a simple message or leave it blank, I'd say editing the file directly is the easier way to do it.
Thank you very much mjones
If I am in ~, and then cd ../etc/,
there is no motd file there..
I am on Ubuntu 18.04.4,
maybe it is located somewhere else?
This is about the most needlessly-complicated subject in every (recent) Linux I've ever encountered. Ubuntu makes it even more complicated because they don't want you to disable the advertising they push at you. See here:
Ubuntu makes it even more complicated because they don't want you to disable the advertising they push at you.
Thank you for the link,
it seems to have more updated info,
yet even that did not help..
The article is from 2017, and it seems Ubuntu changed it again.
I will try to ask in an Ubuntu forum, for instructions for my Ubuntu version..
Maybe this will be more useful:
I switched from Ubuntu to Debian precisely because of crap like this (not that Debian makes it any easier but at least they don't push advertising at you).