views:

220

answers:

1

Problem: to understand the following timestamp

1241036430

at ~/.history

: 1241036336:0;vim ~/.zshrc
: 1241036379:0;vim ~/bin/HideTopBar
: 1241036421:0;ls
: 1241036430:0;cat ~/.history

when I have

setopt EXTENDED_HISTORY
HISTFILE=~/.history

in .zshrc.

How can you read the timestamp?

+1  A: 

Try history -d. Or just type history - and press control-D to get all the various options:

% history -
-D  -- print elapsed times
-E  -- dd.mm.yyyy format time-stamps
-d  -- print time-stamps
-f  -- mm/dd/yyyy format time-stamps
-i  -- yyyy-mm-dd format time-stamps
-m  -- treat first argument as a pattern
-n  -- suppress line numbers
-r  -- reverse order of the commands
Nicholas Riley
Thank you for the explanations!
Masi