how to print date/cal in /etc/motd on linux server

helo

i want to show today date and calendar when v succesfuly login on the system on the linux server

please orovide the sol for the same

thanx :):):slight_smile:

Hello dodasajan,

basically the content of /etc/motd is just displayed using something along the line:

[ -f /etc/motd ] && cat /etc/motd

IOW, it will be difficult to implement your functionality using /etc/motd... However /etc/profile might be what you are looking for.

HTH,
Lo�c