Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 1.41 KB

G903 - Appendix 03 ~ Customization of the motd file.md

File metadata and controls

26 lines (18 loc) · 1.41 KB

G903 - Appendix 03 ~ Customization of the motd file

Every time you open a new shell terminal, no matter if remotely or locally, you see a bunch of lines over the starting prompt. In Debian, those lines are stored in the /etc/motd file and can be modified or completely replaced by any other text.

Just make a backup of that file (as a .original version) before editing it, and then modify in any way you want.

$ cd /etc
$ sudo cp motd motd.original
$ sudo vim motd

BEWARE!
In the sshd configuration there's a PrintMotd set to no. Don't change it to yes or you'll see the motd content printed twice.

References

Navigation

<< Previous (G902. Appendix 02) | +Table Of Contents+ | Next (G904. Appendix 04) >>