Buscar este blog

lunes, 20 de junio de 2011

HISTORIAL DE COMANDOS CON FECHA Y HORA

Para la shell "bash"

# export HISTTIMEFORMAT="%h/%d - %H:%M:%S "

# history

.......
519 Jun/21 - 01:27:44 ps -ef |more
520 Jun/21 - 01:28:05 history
521 Jun/21 - 01:28:17 man history
522 Jun/21 - 01:30:12 qq
523 Jun/21 - 01:30:15 EXTENDED_HISTORY=ON; history; fc -t
524 Jun/21 - 01:30:30 EXTENDED_HISTORY=ON; history; fc -t
525 Jun/21 - 01:30:33 EXTENDED_HISTORY=ON; history;
526 Jun/21 - 01:30:48 jobs
527 Jun/21 - 01:33:04 export HISTTIMEFORMAT="%h/%d - %H:%M:%S "
528 Jun/21 - 01:33:09 history
529 Jun/21 - 01:33:20 date
530 Jun/21 - 01:33:24 history
..

Para la shell "ksh"

export EXTENDED_HISTORY=ON;
# fc -t