Every time I open a Terminal window, I'm greeted with this message:

Last login: Mon Nov 14 21:00:58 on ttys000

It bothers me a bit. Is there any way to remove this message from when I open a shell?

1 Answer 1

touch ~/.hushlogin
  • Kind of... I have a custom MOTD in /etc/motd, is there any way to preserve that while still silencing the Last login: banner?
    – esqew
    Nov 15, 2011 at 3:13
  • @esqew I don't know. I didn't find anything in man motd or man login.
    – Lri
    Nov 15, 2011 at 3:48
  • This doesn't work on Yosemite, see tons of details and solutions here: stackoverflow.com/q/15769615/6320039
    – Ulysse BN
    Mar 27, 2019 at 15:02

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.