Agregando fecha y hora al Historial de BASH
Navegando me encontré con el siguiente tip para agregar fecha y hora al historial de BASH:
Seteamos la variable de entorno HISTTIMEFORMAT:
export HISTTIMEFORMAT="%Y/%m/%d - %H:%M:%S "
Y probamos:
history
Y obtenemos:
    1  2011/04/19 - 01:49:22 cd Desktop/
    2  2011/04/19 - 01:49:22 ls -lh
    3  2011/04/19 - 01:49:22 mysql
    4  2011/04/19 - 01:49:22 mv wordpress/ /var/www
    5  2011/04/19 - 01:49:22 mysql -u root -p
    6  2011/04/19 - 01:49:22 cd /var/www/wordpress/
    7  2011/04/19 - 01:49:22 ls -lh
"Para hacer esto global y permanente para todos los usuarios, editar /etc/profile y agregar al comienzo el export."
Comentarios