I’m a Systems/Software Engineer in the San Francisco Bay Area. I moved from Columbus, Ohio in 2007 after getting a B.S. in Physics from the Ohio State University. I'm married, and we have dogs.

Under my github account (https://github.com/addumb): I open-sourced python-aliyun in 2014, I have an outdated python 2 project starter template at python-example, and I have a pretty handy “sshec2” command and some others in tools.

Linux tip 4 - bash history timestamps

March 08, 2010

Bash history can be a lifesaver, but when you need it, you usually also need to know when the commands were run. To do this, put the following line in your ~/.bashrc
export HISTTIMEFORMAT="[%x %X] "
This tells bash to prepend lines to .bash_history with the timestamp (commented) so when you run history, the timestamps get pulled in alongside the commands.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 United States License. :wq