Hide 'Last login:' on bash login
source link: https://www.devroom.io/2010/11/25/hide-last-login-on-bash-login/?utm_campaign=Feed%3A+ariejan+%28ariejan%7Cdevroom.io%29
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Hide 'Last login:' on bash login
Everytime I open a new Terminal on my Mac, I get a line like this:
Last login: Thu Nov 25 09:07:55 on ttys004
This annoys me. I don’t care when I last opened a local Terminal.
To hide this “Last login” message when logging in to bash you need to create a file in your homedirectory.
touch ~/.hushlogin
With this .hushlogin
file in place you won’t see the “Last login” message and go directly to your prompt, where you want to be.
My site is free of ads and trackers. I record privacy-respecting usage statistics with Fathom.
Was this post helpful to you? Why not ☕ Buy me a coffee
Copyright © 1999-2020 Ariejan de Vroom <[email protected]>
Live now; make now always the most precious time. Now will never come again.
– Jean-Luc Picard
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK