You are here

learning from history

i always thought the history command wasnt configurable. boy was i wrong

so i was able to identify exactly when each command in history was run by using the command

export HISTTIMEFORMAT="%Y-%m-%d %T  "; history

where HISTTIMEFORMAT follows the date command's syntax.

more reading material can be found here