Skip to content

Instantly share code, notes, and snippets.

@ricardoanguiano
Last active August 29, 2015 14:03
Show Gist options
  • Save ricardoanguiano/f314e952e29c805382a1 to your computer and use it in GitHub Desktop.
Save ricardoanguiano/f314e952e29c805382a1 to your computer and use it in GitHub Desktop.
How to change /etc/motd on ubuntu systems.
1. Create /etc/motd.ricardo
This is the real motd
2. Create /etc/update-motd.d/01-motd-ricardo
#!/bin/sh
echo
cat /etc/motd.ricardo
3. Make /etc/update-motd.d/01-motd-ricardo executable
chmod +x /etc/update-motd.d/01-motd-ricardo
4. Marvel at how much easier this was when all you had to do was update /etc/motd.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment