the profile doesn't print the motd but maybe there's a similar file that is doing this.
i know that the profile is only being called once as if i echo something in there i only see it once (after the 2 motds)
I managed to get access to a RedHat Linux box and the man pages have no reference to 'motd' However the man page for login suggest that it is the login binary which displays the last login.
On other unix servers which do have an motd file, this is read by /etc/profile for sh or ksh users and by /etc/cshrc bu csh users.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.