I'm trying to put a timestamp to history command
export HISTTIMEFORMAT='%F %T '
, but commands (both old and new) recorded in history are not showing timestamps.
history | tail
445 exoirt HISTTIMEFORMAT='F% T%' 446 export HISTTIMEFORMAT='F% T%' 447 history 448 history | tail 449 ls 450 cd 451 ls 452 cd 453 ls 454 cd
I expected some datetime information between the number and the column. like here (visible in the below snipped too)
1 2008-08-05 19:02:39 service network restart 2 2008-08-05 19:02:39 exit 3 2008-08-05 19:02:39 id 4 2008-08-05 19:02:39 cat /etc/redhat-release
history is an alias for history 0
I tried to insert the variable in ~/.bashrc file, but again it did not work.
Edit: I am running Kali linux. I tried rebooting my system and resetting my history size and data. Edit #2: Output of