# How to remove the “Last login..” message from the shell

> Learn how to remove the annoying 'Last login...' message that shows when you open your shell by creating a .hushlogin file, on both macOS and Linux.

Author: [Flavio Copes](https://flaviocopes.com/about/) | Published: 2022-12-26 | Topics: [CLI](https://flaviocopes.com/tags/cli/) | Canonical: https://flaviocopes.com/shell-remove-last-login-info/

My shell had this line every time I opened it:

![Before](https://flaviocopes.com/images/shell-remove-last-login-info/before.png)

Useless information for me.

And I wanted to remove it.

I ran this command to remove the “last login: ….” information:

```jsx
touch ~/.hushlogin
```

Done!

![After](https://flaviocopes.com/images/shell-remove-last-login-info/after.png)

Works in macOS and Linux.
