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!

Vultr - another reliable alternative for SEA Virtual Private Server!

I have been using Vultr  as my recent VPS now, since it has just a nearby Data Center in Singapore (sadly, Malaysian VPS is always expensive.. so the best option is DC in Singapore - most of the time). It provides free trial credit for around USD5.. and +USD2 if you did a social media integration/sharing with Twitter. Try it now. Click Vultr