Difference between revisions of "Timestamp"
From WA2IAC Wiki
m |
|||
Line 110: | Line 110: | ||
0swaps | 0swaps | ||
</pre> | </pre> | ||
+ | |||
+ | ==Random== | ||
+ | |||
+ | ===Shell History=== | ||
+ | |||
+ | Shell History Timestamping | ||
+ | |||
+ | HISTTIMEFORMAT takes format string of strftime. Check out the strftime manual to choose and construct the timestamp that suit your taste. My favorite is “%F %T “. | ||
+ | export HISTTIMEFORMAT="%F %T " | ||
+ | |||
+ | Execute history again and you will see the effect on the spot, bare in mind that the timestamp for command lines that executed at previous sessions may not valid, as the time was not tracked. |