Display Date And Time For Each History Command
You would have typed in [root@server ~ ]# history and got a list of commands typed in at the command prompt. Here is a way to get the time, date of history command. $ HISTTIMEFORMAT=”%d/%m/%y %T “ OR $ echo ‘export HISTTIMEFORMAT=”%d/%m/%y %T “‘ >> ~/.bash_profile Where, %d – Day %m – Month … [Read more…]