9951 explained code solutions for 126 technologies


ubuntuHow to print terminal/console history with timestamps


HISTTIMEFORMAT="%F %T " && historyctrl + c
history

prints entire commands history for current user

HISTTIMEFORMAT

set format for command time to print

%F %T

e.g. 2022-02-02 16:47:53