History

Example

Display Date And Time For Each Command

$ HISTTIMEFORMAT="%d/%m/%y %T "

or

$ echo 'export HISTTIMEFORMAT="%d/%m/%y %T "' >> ~/.bash_profile
  • %d - Day
  • %m - Month
  • %y - Year
  • %T - Time