List Commands with Date and Timestamp - History

by janani 2014-05-29 10:06:55

Display History command with corresponding timestamp:
 $export HISTTIMEFORMAT='%F %T  '
 $history grep | "2014-05-29"
Output:
      1  2014-05-29 10:40:12   /opt/lampp/lampp start
      2  2014-05-29 10:40:12   clear
      3  2014-05-29 10:40:12   /etc/init.d/iptables stop
      4  2014-05-29 10:40:12   clear
      5  2014-05-29 10:40:12   history
      6  2014-05-29 10:40:12   ping hiox.com
      7  2014-05-29 10:40:12   cd /opt/lampp/htdocs

 

Tagged in:

1379
like
0
dislike
0
mail
flag

You must LOGIN to add comments