When I run history
command (on tcsh), it only prints the TIME portion of the timestamp and omits the date:
3 15:07 echo $PATH
4 15:07 ls -la
In bash, you can use HISTTIMEFORMAT
environmental variable to affect the timestamp forman printed by history
command.
E.g. set HISTTIMEFORMAT="[%F %T %Z] "
Is there a way to do this in tcsh and if so, which version of tcsh is required? We have tcsh 6.17.00.
Environment: Red Har Linux 4.4, but I assume the answer shouldn't be affected since history
is a shell built-in and not OS-supplied binary.