Skip to main content

History command with timestamp

I shortened up notes from here

Use this

export HISTTIMEFORMAT="%F %T "


and put in your $HOME/.bashrc if you want to


To get this

 1977  2015-05-06 17:41:10 vi delta3-date.py 
 1978  2015-05-06 17:41:10 ./delta3-date.py 
 1979  2015-05-06 17:41:10 vi delta3-date.py 
 1980  2015-05-06 17:41:10 ./delta3-date.py 
 1981  2015-05-06 17:41:10 vi delta3-date.py 

Comments

Popular posts from this blog

Gue dengan S2 gue. Sronok banget!
Beijing and image manipulation addict Salam, Image manipulation with command line is fun and time consuming too. Given my Digikam plugins unable to work, I start to figure out many wonderful features of other tool which offer almost the same quality. However I was stucked with ImageMagick,with many tutorial on the net: Here and Here for i in *jpg ;do convert -font helvetica -fill white -pointsize 18 -draw 'text 10,50 "ACM-ICPC Beijing 2005"' $i $i;done The pix above shows a heater to heat up guest room during ACM-ICPC competition. (outside building's temperature is almost 4 celcious).