Print Linux Hostname on Login

A short shell script that uses Figlet to print the hostname of your Linux box when you log in, as an alternative to hard-coding it into /etc/motd .

Requires Figlet to be installed (it’s available for many distributions via package manager). On Ubuntu, save this as 15-hostname-print  then move it to /etc/update-motd.d/  and chmod +x  it.