在Mac OS X终端中删除默认的“ Last login:”消息


9

每次打开终端窗口时,都会收到以下消息:

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

这让我有些困扰。打开外壳时,有什么方法可以删除此消息吗?

Answers:


14
touch ~/.hushlogin

有点...我在中有一个自定义的MOTD /etc/motd,有什么办法可以在保持沉默的同时保留它Last login:呢?
esqew

@esqew我不知道。我在man motd或中找不到任何东西man login
Lri

这在优胜美地上不起作用,请在此处查看大量详细信息和解决方案:stackoverflow.com/q/15769615/6320039
Ulysse BN
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.