History format

Set the Bash history to show a timestamp for your command history (for the current terminal session only) by using this command:

HISTTIMEFORMAT="%F %T "

Now type history and you should see timestamp for your Bash history commands.

Source

PT1602's Notebook

Saving code examples I searched multiple times.


2022-06-08