0

How to check history command with time

Hi, use history command to check the previously executed commands on my server but there is no time of execution, how do I get the time information on history command?

Basic Commands Add a comment
yousuf
asked Aug 25 2018

Answer

0

If you want it to log history for permanent, you should put the following line in your ~/.bashrc

export HISTTIMEFORMAT="%d/%m/%y %H:%M "

Add a comment
linuxhelp
asked Jan 29 2019
Post your Answer