Time Format of history Builtin

$HISTTIMEFORMAT defines how the history builtin prints the timestamps of history entries.

Examples

Print ISO dates (yyyy-mm-dd): :

1
2
HISTTIMEFORMAT="%Y-%m-%d "
history
BashSupport Pro is a Bash IDE with support for $HISTTIMEFORMAT – try it now!
© 2020–2022 Joachim Ansorg
Imprint
Privacy Policy
Legal