When I run the history command on my ubuntu server, I get output as follows:
history ... 25 cd ~ 26 ls -a 27 vim /etc/gitconfig 28 vim ~/.gitconfig I want to view the datetime of a particular user. However when I assume them:
su otheruser export HISTTIMEFORMAT='%F %T ' history ... 25 cd ~ 26 ls -a 27 vim /etc/gitconfig 28 vim ~/.gitconfig It still doesn't show datetime. I am using zsh shell.