LoginSignup
5
3

More than 5 years have passed since last update.

シェル起動時の「Last login:」を表示しないようにする

Posted at

あんまり気にしたことなかったけど、知らなかったのでメモ。

シェルの起動直後、以下のように最終ログイン時間が表示される。

Last login: Mon Nov 10 00:03:21 on ttys005
$ 

この表示が必要ない場合、以下のコマンドを実行してホームディレクトリ配下に.hushloginファイルを作成すると、次回移行のシェル起動時に最終ログイン時間が表示されなくなる。

$ touch ~/.hushlogin

参考記事

5
3
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
3