I know this because my old
/etc/motd file was removed during a routine
upgrade, and I was presented with this when I next SSHed into the upgraded box:
Last login: Mon Aug 1 18:26:40 2017 from 220.127.116.11
FreeBSD 13.1-RELEASE-p9 n245429-296d095698e TRUENAS
Welcome to FreeBSD!
Release Notes, Errata: https://www.FreeBSD.org/releases/
Security Advisories: https://www.FreeBSD.org/security/
FreeBSD Handbook: https://www.FreeBSD.org/handbook/
FreeBSD FAQ: https://www.FreeBSD.org/faq/
Questions List: https://lists.FreeBSD.org/mailman/listinfo/freebsd-questions/
FreeBSD Forums: https://forums.FreeBSD.org/
Documents installed with the system are in the /usr/local/share/doc/freebsd/
directory, or can be installed later with: pkg install en-freebsd-doc
For other languages, replace "en" with a language code like de or fr.
Show the version of FreeBSD installed: freebsd-version ; uname -a
Please include that output and any error messages when posting questions.
Introduction to manual pages: man man
FreeBSD directory layout: man hier
To change this login announcement, see motd(5).
I imagine someone finds this message useful every single time they access their
FreeBSD Jail. The enviable system admin who’s de-Googled their life and only
navigates the internet by curling URLs handed to them via their
ttys but who
also forgets where documentation can be found from time to time and isn’t
familiar with the filesystem hierarchy on which they cut their chops. I am a
Hacknews-browsing hipster with a paid subscription to Kagi, so I have no need
for this cruft — begone vile message, I exclaim!
As of FreeBSD 13.0, we have this:
And apparently some templating system that allows one to produce messages and system announcements on the kinds of machine I’m not given access to.
MOTD(5) FreeBSD File Formats Manual MOTD(5)
motd – file containing message(s) of the day
The file /var/run/motd is normally displayed by login(1) after a user has
logged in but before the shell is run. It is generally used for
important system-wide announcements. During system startup, a line
containing the kernel version string is prepended to /etc/motd.template
and the contents are written to /var/run/motd.
/var/run/motd can be updated without a system reboot by manually
restarting the motd service after updating /etc/motd.template:
service motd restart
Individual users may suppress the display of this file by creating a file
named “.hushlogin” in their home directories or through login.conf(5).
The template file that system administrators can edit.
/var/run/motd The message of the day.
$HOME/.hushlogin Suppresses output of /var/run/motd.
FreeBSD 12.1-RELEASE (GENERIC) #0: Sun Dec 29 03:08:31 PST 2019
/home is full. Please cleanup your directories.
Prior to FreeBSD 13.0, motd lived in /etc.
Maybe I’ll give a friend access to one of my Jails and output some message
everytime they sign in about
zsh/attr being unable to open