Bash History: How To Show A Timestamp When Each Command Was Executed

Bash keeps a history of the commands you type, which can be accessed by typing “history”. By default you see a number followed by the commands you’ve used recently. This article explains how to get the Bash history to show the timestamp (date and time) when each command was executed.

Source: LXer – Bash History: How To Show A Timestamp When Each Command Was Executed