Skip to main content
2 of 3
added 23 characters in body
JohnMerlino
  • 6.5k
  • 12
  • 37
  • 38

datetime stamp when running history command in zsh shell

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.

JohnMerlino
  • 6.5k
  • 12
  • 37
  • 38