LoginSignup
1
0

More than 3 years have passed since last update.

Bashでコマンドの実行履歴にタイムスタンプを表示する(history)

Last updated at Posted at 2020-06-19

bashでデプロイなど時間のかかるコマンドを実行したとき、そういえば実行してから何分経ったかな、ということがあります。
~/.bashrcに

~/.bashrc
HISTTIMEFORMAT="%F %T "

を追記するとhistoryコマンドにタイムスタンプがついて便利です。
参考) Bash History: How To Show A Timestamp (Date / Time) When Each Command Was Executed

1
0
0

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
1
0