When I log in via ssh, the motd gets printed. Among other things:

Last login: Mon Nov 4 06:53:02 2019 from

I believe thsi comes from the pam_lastlog.so as configured in /etc/pam.d/login:

session    optional   pam_lastlog.so

Is it possible to change the date format ?

For instance, if I wanted format like this ?

date "+%F %T"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.