Tuesday, June 30, 2015

Creating human friendly timestamp for Linux history

HISTTIMEFORMAT="%d/%m/%y %T "

Output:

 2031  29/06/15 21:54:31 ps uanx|grep -i bbb
 2032  29/06/15 21:54:40 nmap localhost
 2033  29/06/15 21:55:11 history 

No comments: