Wednesday, January 11, 2012

Show date/time with history command in Linux

Run this command:

export HISTTIMEFORMAT="%F %T "
Then view history as usual:

 history
your output will look something like this:
2012-01-11 15:49:00 ps -A | grep firefox