By default, time
stamp information is not associated with executed history commands. To enable
the time stamp on every bash command follow the below steps:
[root@linuxcnf
~]# echo "export HISTTIMEFORMAT='%F %T'" >> /etc/profile
[root@linuxcnf
~]# source /etc/profile
|
That’s it, now the history command show commands with
execution time stamp.
No comments:
Post a Comment