Last active
August 29, 2015 14:03
-
-
Save ricardoanguiano/f314e952e29c805382a1 to your computer and use it in GitHub Desktop.
How to change /etc/motd on ubuntu systems.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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