Timestamps on your bash history
Often Iv’ve seen boxes compromised, or commands run that we have no idea who did it and at what time. Its very frustrating, especially when we have no idea if a customer did it, one of the staff, or if a box was compromised.
HISTTIMEFORMAT="%F-%R%t"
now you can run the following command
wishes@tulip:~$ history | tail -n 2
502 2009-10-15-11:26 vim...
by Liz Quilty at October 15th, 2009 at 01:10 pm